-
Notifications
You must be signed in to change notification settings - Fork 336
/
Copy pathec2_stack1.yaml
40 lines (33 loc) · 902 Bytes
/
ec2_stack1.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
AWSTemplateFormatVersion: "2010-09-09"
Description: "Export Values"
Parameters:
InstanceTypeParameter:
Description: Select instance type
Type: String
Default: t2.micro
AllowedValues:
- t2.micro
- t2.small
- t2.large
Description: Enter t2.micro, m1.small, or m1.large. Default is t2.micro.
Resources:
Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType: !Ref InstanceTypeParameter
ImageId: ami-0dba2cb6798deb6d8
AvailabilityZone: !Select
- 1
- !GetAZs
Ref: 'AWS::Region'
Outputs:
InstanceAvl:
Value: !GetAtt Instance.AvailabilityZone
Description: Availibility Zone
Export:
Name: "AvailZone"
InstanceId:
Value: !Ref Instance
Description: Instance information
Export:
Name: "Instance"