-
Notifications
You must be signed in to change notification settings - Fork 0
/
10-Mapping.yaml
72 lines (69 loc) · 1.84 KB
/
10-Mapping.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# will be using mapping to map the parameters with our resources.
Parameters:
EnvironmentName:
Description: Environment Name
Type: String
AllowedValues: [development, production]
ConstraintDescription: must be development or production
Resources:
EC2Instance:
Type: AWS::EC2::Instance
Properties:
InstanceType:
!FindInMap [
EnvironmentToInstanceType,
!Ref "EnvironmentName",
instanceType,
]
# Note we use the pseudo parameter AWS::Region
ImageId: !FindInMap [AWSRegionArch2AMI, !Ref "AWS::Region", HVM64]
Mappings:
AWSRegionArch2AMI:
af-south-1:
HVM64: ami-06db08e8636583118
ap-east-1:
HVM64: ami-0921e2da2f22f9617
ap-northeast-1:
HVM64: ami-06098fd00463352b6
ap-northeast-2:
HVM64: ami-07464b2b9929898f8
ap-northeast-3:
HVM64: ami-0b96303a469fa0678
ap-south-1:
HVM64: ami-0bcf5425cdc1d8a85
ap-southeast-1:
HVM64: ami-03ca998611da0fe12
ap-southeast-2:
HVM64: ami-06202e06492f46177
ca-central-1:
HVM64: ami-09934b230a2c41883
eu-central-1:
HVM64: ami-0db9040eb3ab74509
eu-north-1:
HVM64: ami-02baf2b4223a343e8
eu-south-1:
HVM64: ami-081e7f992eee19465
eu-west-1:
HVM64: ami-0ffea00000f287d30
eu-west-2:
HVM64: ami-0fbec3e0504ee1970
eu-west-3:
HVM64: ami-00dd995cb6f0a5219
me-south-1:
HVM64: ami-0502022ce8bfa56a9
sa-east-1:
HVM64: ami-0c27c96aaa148ba6d
us-east-1:
HVM64: ami-0742b4e673072066f
us-east-2:
HVM64: ami-05d72852800cbf29e
us-west-1:
HVM64: ami-0577b787189839998
us-west-2:
HVM64: ami-0518bb0e75d3619ca
EnvironmentToInstanceType:
development:
instanceType: t2.micro
# we want a bigger instance type in production
production:
instanceType: t2.small