-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathec2_free.yaml
More file actions
executable file
·36 lines (36 loc) · 1.08 KB
/
ec2_free.yaml
File metadata and controls
executable file
·36 lines (36 loc) · 1.08 KB
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
AWSTemplateFormatVersion: 2010-09-09
Description: "Sample Free EC2 Provision"
Parameters:
InsanceTypeParam:
Type: String
Default: t2.micro
AllowedValues:
- t2.micro
Description: Param for Ec2 Type
ImageIdParam:
Type: String
Default: ami-01f7527546b557442
AllowedValues:
- ami-01f7527546b557442
- ami-0fb6b6f9e81056553
- ami-03b6f27628a4569c8
Description: Parameter for Image Id first one is for linux ami
AvailabilityZoneParam:
Type: String
Default: ap-southeast-1a
AllowedValues:
- ap-southeast-1a
- ap-southeast-1b
- ap-southeast-1c
Description: "Parameter for Availability Zone"
Resources:
MyInstance:
Type: AWS::EC2::Instance
Properties:
AvailabilityZone: !Ref AvailabilityZoneParam
ImageId: !Ref ImageIdParam
InstanceType: !Ref InsanceTypeParam
Outputs:
WebsiteURL:
Value: !GetAtt MyInstance.PublicDnsName
Description: "Public IP Output"