sumomo 0.8.9 → 0.8.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,158 +1,386 @@
1
-
2
- var typeToArch = {
3
- "c1.medium": "PV64",
4
- "c1.xlarge": "PV64",
5
- "c3.2xlarge": "HVM64",
6
- "c3.4xlarge": "HVM64",
7
- "c3.8xlarge": "HVM64",
8
- "c3.large": "HVM64",
9
- "c3.xlarge": "HVM64",
10
- "c4.2xlarge": "HVM64",
11
- "c4.4xlarge": "HVM64",
12
- "c4.8xlarge": "HVM64",
13
- "c4.large": "HVM64",
14
- "c4.xlarge": "HVM64",
15
- "c5.18xlarge": "HVM64",
16
- "c5.2xlarge": "HVM64",
17
- "c5.4xlarge": "HVM64",
18
- "c5.9xlarge": "HVM64",
19
- "c5.large": "HVM64",
20
- "c5.xlarge": "HVM64",
21
- "c5d.18xlarge": "HVM64",
22
- "c5d.2xlarge": "HVM64",
23
- "c5d.4xlarge": "HVM64",
24
- "c5d.9xlarge": "HVM64",
25
- "c5d.large": "HVM64",
26
- "c5d.xlarge": "HVM64",
27
- "cc2.8xlarge": "HVM64",
28
- "cr1.8xlarge": "HVM64",
29
- "d2.2xlarge": "HVM64",
30
- "d2.4xlarge": "HVM64",
31
- "d2.8xlarge": "HVM64",
32
- "d2.xlarge": "HVM64",
33
- "f1.16xlarge": "HVM64",
34
- "f1.2xlarge": "HVM64",
35
- "f1.4xlarge": "HVM64",
36
- "g2.2xlarge": "HVMG2",
37
- "g2.8xlarge": "HVMG2",
38
- "g3.16xlarge": "HVMG2",
39
- "g3.4xlarge": "HVMG2",
40
- "g3.8xlarge": "HVMG2",
41
- "h1.16xlarge": "HVM64",
42
- "h1.2xlarge": "HVM64",
43
- "h1.4xlarge": "HVM64",
44
- "h1.8xlarge": "HVM64",
45
- "hs1.8xlarge": "HVM64",
46
- "i2.2xlarge": "HVM64",
47
- "i2.4xlarge": "HVM64",
48
- "i2.8xlarge": "HVM64",
49
- "i2.xlarge": "HVM64",
50
- "i3.16xlarge": "HVM64",
51
- "i3.2xlarge": "HVM64",
52
- "i3.4xlarge": "HVM64",
53
- "i3.8xlarge": "HVM64",
54
- "i3.large": "HVM64",
55
- "i3.metal": "HVM64",
56
- "i3.xlarge": "HVM64",
57
- "m1.large": "PV64",
58
- "m1.medium": "PV64",
59
- "m1.small": "PV64",
60
- "m1.xlarge": "PV64",
61
- "m2.2xlarge": "PV64",
62
- "m2.4xlarge": "PV64",
63
- "m2.xlarge": "PV64",
64
- "m3.2xlarge": "HVM64",
65
- "m3.large": "HVM64",
66
- "m3.medium": "HVM64",
67
- "m3.xlarge": "HVM64",
68
- "m4.10xlarge": "HVM64",
69
- "m4.16xlarge": "HVM64",
70
- "m4.2xlarge": "HVM64",
71
- "m4.4xlarge": "HVM64",
72
- "m4.large": "HVM64",
73
- "m4.xlarge": "HVM64",
74
- "m5.12xlarge": "HVM64",
75
- "m5.24xlarge": "HVM64",
76
- "m5.2xlarge": "HVM64",
77
- "m5.4xlarge": "HVM64",
78
- "m5.large": "HVM64",
79
- "m5.xlarge": "HVM64",
80
- "m5d.12xlarge": "HVM64",
81
- "m5d.24xlarge": "HVM64",
82
- "m5d.2xlarge": "HVM64",
83
- "m5d.4xlarge": "HVM64",
84
- "m5d.large": "HVM64",
85
- "m5d.xlarge": "HVM64",
86
- "p2.16xlarge": "HVM64",
87
- "p2.8xlarge": "HVM64",
88
- "p2.xlarge": "HVM64",
89
- "p3.16xlarge": "HVM64",
90
- "p3.2xlarge": "HVM64",
91
- "p3.8xlarge": "HVM64",
92
- "r3.2xlarge": "HVM64",
93
- "r3.4xlarge": "HVM64",
94
- "r3.8xlarge": "HVM64",
95
- "r3.large": "HVM64",
96
- "r3.xlarge": "HVM64",
97
- "r4.16xlarge": "HVM64",
98
- "r4.2xlarge": "HVM64",
99
- "r4.4xlarge": "HVM64",
100
- "r4.8xlarge": "HVM64",
101
- "r4.large": "HVM64",
102
- "r4.xlarge": "HVM64",
103
- "r5.12xlarge": "HVM64",
104
- "r5.24xlarge": "HVM64",
105
- "r5.2xlarge": "HVM64",
106
- "r5.4xlarge": "HVM64",
107
- "r5.large": "HVM64",
108
- "r5.xlarge": "HVM64",
109
- "r5d.12xlarge": "HVM64",
110
- "r5d.24xlarge": "HVM64",
111
- "r5d.2xlarge": "HVM64",
112
- "r5d.4xlarge": "HVM64",
113
- "r5d.large": "HVM64",
114
- "r5d.xlarge": "HVM64",
115
- "t1.micro": "PV64",
116
- "t2.2xlarge": "HVM64",
117
- "t2.large": "HVM64",
118
- "t2.medium": "HVM64",
119
- "t2.micro": "HVM64",
120
- "t2.nano": "HVM64",
121
- "t2.small": "HVM64",
122
- "t2.xlarge": "HVM64",
123
- "t3.2xlarge": "HVM64",
124
- "t3.large": "HVM64",
125
- "t3.medium": "HVM64",
126
- "t3.micro": "HVM64",
127
- "t3.nano": "HVM64",
128
- "t3.small": "HVM64",
129
- "t3.xlarge": "HVM64",
130
- "x1.16xlarge": "HVM64",
131
- "x1.32xlarge": "HVM64",
132
- "x1e.16xlarge": "HVM64",
133
- "x1e.2xlarge": "HVM64",
134
- "x1e.32xlarge": "HVM64",
135
- "x1e.4xlarge": "HVM64",
136
- "x1e.8xlarge": "HVM64",
137
- "x1e.xlarge": "HVM64",
138
- "z1d.12xlarge": "HVM64",
139
- "z1d.2xlarge": "HVM64",
140
- "z1d.3xlarge": "HVM64",
141
- "z1d.6xlarge": "HVM64",
142
- "z1d.large": "HVM64",
143
- "z1d.xlarge": "HVM64",
1
+ var typeToPattern = {
2
+ 'a1.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
3
+ 'a1.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
4
+ 'a1.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
5
+ 'a1.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
6
+ 'a1.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
7
+ 'a1.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
8
+ 'c1.medium': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
9
+ 'c1.xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
10
+ 'c3.2xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
11
+ 'c3.4xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
12
+ 'c3.8xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
13
+ 'c3.large': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
14
+ 'c3.xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
15
+ 'c4.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
16
+ 'c4.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
17
+ 'c4.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
18
+ 'c4.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
19
+ 'c4.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
20
+ 'c5.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
21
+ 'c5.18xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
22
+ 'c5.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
23
+ 'c5.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
24
+ 'c5.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
25
+ 'c5.9xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
26
+ 'c5.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
27
+ 'c5.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
28
+ 'c5.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
29
+ 'c5a.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
30
+ 'c5a.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
31
+ 'c5a.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
32
+ 'c5a.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
33
+ 'c5a.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
34
+ 'c5a.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
35
+ 'c5a.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
36
+ 'c5a.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
37
+ 'c5d.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
38
+ 'c5d.18xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
39
+ 'c5d.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
40
+ 'c5d.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
41
+ 'c5d.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
42
+ 'c5d.9xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
43
+ 'c5d.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
44
+ 'c5d.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
45
+ 'c5d.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
46
+ 'c5n.18xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
47
+ 'c5n.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
48
+ 'c5n.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
49
+ 'c5n.9xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
50
+ 'c5n.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
51
+ 'c5n.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
52
+ 'c5n.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
53
+ 'c6g.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
54
+ 'c6g.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
55
+ 'c6g.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
56
+ 'c6g.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
57
+ 'c6g.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
58
+ 'c6g.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
59
+ 'c6g.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
60
+ 'c6g.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
61
+ 'c6g.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
62
+ 'c6gd.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
63
+ 'c6gd.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
64
+ 'c6gd.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
65
+ 'c6gd.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
66
+ 'c6gd.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
67
+ 'c6gd.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
68
+ 'c6gd.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
69
+ 'c6gd.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
70
+ 'c6gd.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
71
+ 'c6gn.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
72
+ 'c6gn.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
73
+ 'c6gn.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
74
+ 'c6gn.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
75
+ 'c6gn.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
76
+ 'c6gn.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
77
+ 'c6gn.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
78
+ 'c6gn.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
79
+ 'cc2.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
80
+ 'd2.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
81
+ 'd2.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
82
+ 'd2.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
83
+ 'd2.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
84
+ 'd3.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
85
+ 'd3.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
86
+ 'd3.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
87
+ 'd3.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
88
+ 'g2.2xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
89
+ 'g2.8xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
90
+ 'g3.16xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
91
+ 'g3.4xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
92
+ 'g3.8xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
93
+ 'g3s.xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
94
+ 'g4ad.16xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
95
+ 'g4ad.2xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
96
+ 'g4ad.4xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
97
+ 'g4ad.8xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
98
+ 'g4ad.xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
99
+ 'g4dn.12xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
100
+ 'g4dn.16xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
101
+ 'g4dn.2xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
102
+ 'g4dn.4xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
103
+ 'g4dn.8xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
104
+ 'g4dn.metal': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
105
+ 'g4dn.xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
106
+ 'i2.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
107
+ 'i2.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
108
+ 'i2.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
109
+ 'i2.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
110
+ 'i3.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
111
+ 'i3.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
112
+ 'i3.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
113
+ 'i3.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
114
+ 'i3.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
115
+ 'i3.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
116
+ 'i3.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
117
+ 'i3en.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
118
+ 'i3en.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
119
+ 'i3en.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
120
+ 'i3en.3xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
121
+ 'i3en.6xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
122
+ 'i3en.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
123
+ 'i3en.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
124
+ 'i3en.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
125
+ 'inf1.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
126
+ 'inf1.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
127
+ 'inf1.6xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
128
+ 'inf1.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
129
+ 'm1.large': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
130
+ 'm1.medium': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
131
+ 'm1.small': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
132
+ 'm1.xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
133
+ 'm2.2xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
134
+ 'm2.4xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
135
+ 'm2.xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
136
+ 'm3.2xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
137
+ 'm3.large': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
138
+ 'm3.medium': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
139
+ 'm3.xlarge': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
140
+ 'm4.10xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
141
+ 'm4.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
142
+ 'm4.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
143
+ 'm4.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
144
+ 'm4.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
145
+ 'm4.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
146
+ 'm5.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
147
+ 'm5.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
148
+ 'm5.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
149
+ 'm5.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
150
+ 'm5.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
151
+ 'm5.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
152
+ 'm5.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
153
+ 'm5.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
154
+ 'm5.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
155
+ 'm5a.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
156
+ 'm5a.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
157
+ 'm5a.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
158
+ 'm5a.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
159
+ 'm5a.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
160
+ 'm5a.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
161
+ 'm5a.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
162
+ 'm5a.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
163
+ 'm5ad.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
164
+ 'm5ad.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
165
+ 'm5ad.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
166
+ 'm5ad.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
167
+ 'm5ad.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
168
+ 'm5ad.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
169
+ 'm5ad.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
170
+ 'm5ad.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
171
+ 'm5d.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
172
+ 'm5d.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
173
+ 'm5d.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
174
+ 'm5d.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
175
+ 'm5d.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
176
+ 'm5d.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
177
+ 'm5d.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
178
+ 'm5d.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
179
+ 'm5d.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
180
+ 'm5dn.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
181
+ 'm5dn.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
182
+ 'm5dn.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
183
+ 'm5dn.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
184
+ 'm5dn.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
185
+ 'm5dn.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
186
+ 'm5dn.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
187
+ 'm5dn.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
188
+ 'm5dn.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
189
+ 'm5n.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
190
+ 'm5n.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
191
+ 'm5n.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
192
+ 'm5n.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
193
+ 'm5n.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
194
+ 'm5n.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
195
+ 'm5n.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
196
+ 'm5n.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
197
+ 'm5n.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
198
+ 'm5zn.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
199
+ 'm5zn.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
200
+ 'm5zn.3xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
201
+ 'm5zn.6xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
202
+ 'm5zn.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
203
+ 'm5zn.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
204
+ 'm5zn.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
205
+ 'm6g.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
206
+ 'm6g.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
207
+ 'm6g.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
208
+ 'm6g.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
209
+ 'm6g.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
210
+ 'm6g.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
211
+ 'm6g.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
212
+ 'm6g.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
213
+ 'm6g.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
214
+ 'm6gd.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
215
+ 'm6gd.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
216
+ 'm6gd.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
217
+ 'm6gd.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
218
+ 'm6gd.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
219
+ 'm6gd.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
220
+ 'm6gd.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
221
+ 'm6gd.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
222
+ 'm6gd.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
223
+ 'm6i.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
224
+ 'm6i.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
225
+ 'm6i.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
226
+ 'm6i.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
227
+ 'm6i.32xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
228
+ 'm6i.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
229
+ 'm6i.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
230
+ 'm6i.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
231
+ 'm6i.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
232
+ 'mac1.metal': { pattern: 'amzn-ec2-macos-*' },
233
+ 'p2.16xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
234
+ 'p2.8xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
235
+ 'p2.xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
236
+ 'p3.16xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
237
+ 'p3.2xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
238
+ 'p3.8xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
239
+ 'p3dn.24xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
240
+ 'p4d.24xlarge': { pattern: 'amzn2-ami-ecs-gpu-hvm-2.0.*x86_64-ebs' },
241
+ 'r3.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
242
+ 'r3.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
243
+ 'r3.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
244
+ 'r3.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
245
+ 'r3.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
246
+ 'r4.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
247
+ 'r4.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
248
+ 'r4.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
249
+ 'r4.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
250
+ 'r4.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
251
+ 'r4.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
252
+ 'r5.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
253
+ 'r5.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
254
+ 'r5.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
255
+ 'r5.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
256
+ 'r5.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
257
+ 'r5.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
258
+ 'r5.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
259
+ 'r5.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
260
+ 'r5.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
261
+ 'r5a.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
262
+ 'r5a.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
263
+ 'r5a.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
264
+ 'r5a.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
265
+ 'r5a.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
266
+ 'r5a.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
267
+ 'r5a.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
268
+ 'r5a.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
269
+ 'r5ad.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
270
+ 'r5ad.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
271
+ 'r5ad.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
272
+ 'r5ad.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
273
+ 'r5ad.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
274
+ 'r5ad.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
275
+ 'r5ad.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
276
+ 'r5ad.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
277
+ 'r5b.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
278
+ 'r5b.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
279
+ 'r5b.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
280
+ 'r5b.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
281
+ 'r5b.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
282
+ 'r5b.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
283
+ 'r5b.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
284
+ 'r5b.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
285
+ 'r5b.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
286
+ 'r5d.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
287
+ 'r5d.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
288
+ 'r5d.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
289
+ 'r5d.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
290
+ 'r5d.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
291
+ 'r5d.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
292
+ 'r5d.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
293
+ 'r5d.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
294
+ 'r5d.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
295
+ 'r5dn.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
296
+ 'r5dn.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
297
+ 'r5dn.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
298
+ 'r5dn.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
299
+ 'r5dn.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
300
+ 'r5dn.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
301
+ 'r5dn.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
302
+ 'r5dn.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
303
+ 'r5dn.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
304
+ 'r5n.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
305
+ 'r5n.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
306
+ 'r5n.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
307
+ 'r5n.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
308
+ 'r5n.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
309
+ 'r5n.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
310
+ 'r5n.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
311
+ 'r5n.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
312
+ 'r5n.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
313
+ 'r6g.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
314
+ 'r6g.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
315
+ 'r6g.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
316
+ 'r6g.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
317
+ 'r6g.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
318
+ 'r6g.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
319
+ 'r6g.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
320
+ 'r6g.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
321
+ 'r6g.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
322
+ 'r6gd.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
323
+ 'r6gd.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
324
+ 'r6gd.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
325
+ 'r6gd.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
326
+ 'r6gd.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
327
+ 'r6gd.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
328
+ 'r6gd.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
329
+ 'r6gd.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
330
+ 'r6gd.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
331
+ 't1.micro': { pattern: 'amzn2-ami-pv-2.0.*x86_64-ebs' },
332
+ 't2.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
333
+ 't2.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
334
+ 't2.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
335
+ 't2.micro': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
336
+ 't2.nano': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
337
+ 't2.small': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
338
+ 't2.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
339
+ 't3.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
340
+ 't3.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
341
+ 't3.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
342
+ 't3.micro': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
343
+ 't3.nano': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
344
+ 't3.small': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
345
+ 't3.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
346
+ 't3a.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
347
+ 't3a.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
348
+ 't3a.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
349
+ 't3a.micro': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
350
+ 't3a.nano': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
351
+ 't3a.small': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
352
+ 't3a.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
353
+ 't4g.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
354
+ 't4g.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
355
+ 't4g.medium': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
356
+ 't4g.micro': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
357
+ 't4g.nano': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
358
+ 't4g.small': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
359
+ 't4g.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*arm64-ebs' },
360
+ 'vt1.24xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
361
+ 'vt1.3xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
362
+ 'vt1.6xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
363
+ 'x1.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
364
+ 'x1.32xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
365
+ 'x1e.16xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
366
+ 'x1e.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
367
+ 'x1e.32xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
368
+ 'x1e.4xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
369
+ 'x1e.8xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
370
+ 'x1e.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
371
+ 'z1d.12xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
372
+ 'z1d.2xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
373
+ 'z1d.3xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
374
+ 'z1d.6xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
375
+ 'z1d.large': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
376
+ 'z1d.metal': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' },
377
+ 'z1d.xlarge': { pattern: 'amzn2-ami-ecs-hvm-2.0.*x86_64-ebs' }
144
378
  }
145
379
 
146
- var archToAMINamePattern = {
147
- "PV64": "amzn-ami-pv*x86_64-ebs",
148
- "HVM64": "amzn2-ami-hvm-2.0.*x86_64-gp2",
149
- "HVMG2": "amzn2-ami-graphics-hvm-2.0.*x86_64-ebs*"
150
- };
151
-
152
380
  var ec2 = new aws.EC2({region: request.ResourceProperties.Region});
153
381
 
154
382
  var describeImagesParams = {
155
- Filters: [{ Name: "name", Values: [archToAMINamePattern[typeToArch[request.ResourceProperties.InstanceType]]]}],
383
+ Filters: [{ Name: "name", Values: [typeToPattern[request.ResourceProperties.InstanceType].pattern]}],
156
384
  Owners: [request.ResourceProperties.Architecture == "HVMG2" ? "679593333241" : "amazon"]
157
385
  };
158
386