-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yaml
41 lines (38 loc) · 979 Bytes
/
stack.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
39
40
41
---
Mappings:
RegionEC2InstanceImageMap:
us-east-2:
HVM64: ami-02de934ca4f3289e0
HVM32: ami-0233c2d874b811deb
ap-southeast-1:
HVM64: ami-0390917f7df0de28c
HVM32: ami-0e5182fad1edfaa68
Parameters:
EC2InstanceType:
Description: The Instance Type Chosen for EC2
Type: String
Resources:
TekLoonTestInstance:
Type: AWS::EC2::Instance
Properties:
AvailabilityZone: ap-southeast-1a
ImageId: !FindInMap
- RegionEC2InstanceImageMap
- !Ref 'AWS::Region'
- HVM64
InstanceType: !Ref EC2InstanceType
SecurityGroups:
- !Ref HTTPSecurityGroup
HTTPSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: Enable port 80 and port 443
SecurityGroupIngress:
- CidrIp: 0.0.0.0/0
FromPort: 80
IpProtocol: tcp
ToPort: 80
- CidrIp: 0.0.0.0/0
FromPort: 443
IpProtocol: tcp
ToPort: 443