|
13 | 13 |
|
14 | 14 | # This policy denies instance families that aren't based on the Nitro system as documented in the following document: |
15 | 15 | # https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances |
16 | | -# The listing below *are* Nitro-based instances. Most are collected from the following CLI query: |
17 | | -# aws ec2 describe-instance-types \ |
| 16 | +# The listing below *are* Nitro-based instances. They are collected from the following CLI query: |
| 17 | +# |
| 18 | +# aws --region us-east-1 ec2 describe-instance-types \ |
18 | 19 | # --filters Name=hypervisor,Values=nitro \ |
19 | | -# --query "InstanceTypes[*].[InstanceType]" --output text | cut -f 1 -d. | sort | uniq |
| 20 | +# --query "InstanceTypes[*].[InstanceType]" --output text | \ |
| 21 | +# cut -f 1 -d. | sort | uniq | awk '{print " - " $0 ".*"}' |
20 | 22 | # |
21 | | -# However, that the command only lists instance types available in the default region. To be |
| 23 | +# However, that the command only lists instance types available in the specified region. To be |
22 | 24 | # fully comprehensive, the command should be run in all regions where instances are launched. |
23 | | -# As a shortcut, we only run the command in us-east-1, us-west-2, and eu-north-1, as these |
| 25 | +# As a shortcut, we only run the command in the default regions (those that do not require opt-in). |
| 26 | +# To date, it appears that the combination of us-east-1, us-east-2, us-west-2, and eu-west-1 |
24 | 27 | # regions combined appear to cover all instance types. |
25 | 28 | # |
26 | 29 | # In order to fit within the 5120-character limit for policies |
|
37 | 40 | - test: "StringNotLike" |
38 | 41 | variable: "ec2:InstanceType" |
39 | 42 | values: |
40 | | - # updated 2024-04-11 |
| 43 | + # updated 2025-02-14 |
41 | 44 | - a1.* |
42 | 45 | - c5.* |
43 | 46 | - c5a.* |
|
55 | 58 | - c7g.* |
56 | 59 | - c7gd.* |
57 | 60 | - c7gn.* |
| 61 | + - c7i-flex.* |
58 | 62 | - c7i.* |
| 63 | + - c8g.* |
59 | 64 | - d3.* |
60 | 65 | - d3en.* |
61 | 66 | - dl1.* |
62 | 67 | - dl2q.* |
| 68 | + - f2.* |
63 | 69 | - g4ad.* |
64 | 70 | - g4dn.* |
65 | 71 | - g5.* |
66 | 72 | - g5g.* |
67 | 73 | - g6.* |
| 74 | + - g6e.* |
68 | 75 | - gr6.* |
69 | 76 | - hpc6a.* |
70 | 77 | - hpc6id.* |
|
73 | 80 | - i3en.* |
74 | 81 | - i4g.* |
75 | 82 | - i4i.* |
| 83 | + - i7ie.* |
| 84 | + - i8g.* |
76 | 85 | - im4gn.* |
77 | 86 | - inf1.* |
78 | 87 | - inf2.* |
|
94 | 103 | - m7a.* |
95 | 104 | - m7g.* |
96 | 105 | - m7gd.* |
97 | | - - m7i.* |
98 | 106 | - m7i-flex.* |
| 107 | + - m7i.* |
| 108 | + - m8g.* |
99 | 109 | - p3dn.* |
100 | 110 | - p4d.* |
101 | 111 | - p5.* |
| 112 | + - p5e.* |
| 113 | + - p5en.* |
102 | 114 | - r5.* |
103 | 115 | - r5a.* |
104 | 116 | - r5ad.* |
|
118 | 130 | - r7gd.* |
119 | 131 | - r7i.* |
120 | 132 | - r7iz.* |
| 133 | + - r8g.* |
121 | 134 | - t3.* |
122 | 135 | - t3a.* |
123 | 136 | - t4g.* |
124 | 137 | - trn1.* |
125 | 138 | - trn1n.* |
| 139 | + - trn2.* |
126 | 140 | - u-12tb1.* |
127 | 141 | - u-18tb1.* |
128 | 142 | - u-24tb1.* |
129 | 143 | - u-3tb1.* |
130 | 144 | - u-6tb1.* |
131 | 145 | - u-9tb1.* |
| 146 | + - u7i-12tb.* |
| 147 | + - u7i-6tb.* |
| 148 | + - u7i-8tb.* |
| 149 | + - u7in-16tb.* |
| 150 | + - u7in-24tb.* |
| 151 | + - u7in-32tb.* |
132 | 152 | - vt1.* |
133 | 153 | - x2gd.* |
134 | 154 | - x2idn.* |
135 | 155 | - x2iedn.* |
136 | 156 | - x2iezn.* |
| 157 | + - x8g.* |
137 | 158 | - z1d.* |
138 | 159 |
|
139 | 160 | resources: |
|
144 | 165 | # https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data-protection.html#encryption-transit |
145 | 166 | # and enumerated by the following command (adapted from the command specified in the documentation): |
146 | 167 | # |
147 | | -# aws ec2 describe-instance-types \ |
148 | | -# --filters Name=network-info.encryption-in-transit-supported,Values=true \ |
149 | | -# --query "InstanceTypes[*].[InstanceType]" --output text | cut -f 1 -d. | sort | uniq |
| 168 | +# aws --region us-east-1 ec2 describe-instance-types \ |
| 169 | +# --filters Name=network-info.encryption-in-transit-supported,Values=true \ |
| 170 | +# --query "InstanceTypes[*].[InstanceType]" --output text | \ |
| 171 | +# cut -f 1 -d. | sort | uniq | awk '{print " - " $0 ".*"}' |
150 | 172 | # |
151 | | -# Note that the command only lists instance types available in the default region. To be |
| 173 | +# However, that the command only lists instance types available in the specified region. To be |
152 | 174 | # fully comprehensive, the command should be run in all regions where instances are launched. |
153 | | -# Since that is difficult, this policy is based on the official AWS documentation instead. |
| 175 | +# As a shortcut, we only run the command in the default regions (those that do not require opt-in). |
| 176 | +# To date, it appears that the combination of us-east-1, us-east-2, us-west-2, and eu-west-1 |
| 177 | +# regions combined appear to cover all instance types. |
154 | 178 | # |
155 | 179 | # In order to fit within the 5120-character limit for policies |
156 | 180 | # (See https://docs.aws.amazon.com/organizations/latest/userguide/org_troubleshoot_policies.html ) |
|
166 | 190 | - test: "StringNotLike" |
167 | 191 | variable: "ec2:InstanceType" |
168 | 192 | values: |
169 | | - # updated 2024-04-11 |
| 193 | + # updated 2025-02-14 |
170 | 194 | - c5a.* |
171 | 195 | - c5ad.* |
172 | 196 | - c5n.* |
|
179 | 203 | - c7g.* |
180 | 204 | - c7gd.* |
181 | 205 | - c7gn.* |
| 206 | + - c7i-flex.* |
182 | 207 | - c7i.* |
| 208 | + - c8g.* |
183 | 209 | - d3.* |
184 | 210 | - d3en.* |
185 | 211 | - dl1.* |
186 | 212 | - dl2q.* |
| 213 | + - f2.* |
187 | 214 | - g4ad.* |
188 | 215 | - g4dn.* |
189 | 216 | - g5.* |
190 | 217 | - g6.* |
| 218 | + - g6e.* |
191 | 219 | - gr6.* |
192 | 220 | - hpc6a.* |
193 | 221 | - hpc6id.* |
|
196 | 224 | - i3en.* |
197 | 225 | - i4g.* |
198 | 226 | - i4i.* |
| 227 | + - i7ie.* |
| 228 | + - i8g.* |
199 | 229 | - im4gn.* |
200 | 230 | - inf1.* |
201 | 231 | - inf2.* |
|
211 | 241 | - m7a.* |
212 | 242 | - m7g.* |
213 | 243 | - m7gd.* |
214 | | - - m7i.* |
215 | 244 | - m7i-flex.* |
| 245 | + - m7i.* |
| 246 | + - m8g.* |
216 | 247 | - p3dn.* |
217 | 248 | - p4d.* |
218 | | - - p4de.* |
219 | 249 | - p5.* |
| 250 | + - p5e.* |
| 251 | + - p5en.* |
220 | 252 | - r5dn.* |
221 | 253 | - r5n.* |
222 | 254 | - r6a.* |
|
229 | 261 | - r7gd.* |
230 | 262 | - r7i.* |
231 | 263 | - r7iz.* |
| 264 | + - r8g.* |
232 | 265 | - trn1.* |
233 | 266 | - trn1n.* |
| 267 | + - trn2.* |
234 | 268 | - u-12tb1.* |
235 | 269 | - u-18tb1.* |
236 | 270 | - u-24tb1.* |
237 | 271 | - u-3tb1.* |
238 | 272 | - u-6tb1.* |
239 | 273 | - u-9tb1.* |
| 274 | + - u7i-12tb.* |
| 275 | + - u7i-6tb.* |
| 276 | + - u7i-8tb.* |
| 277 | + - u7in-16tb.* |
| 278 | + - u7in-24tb.* |
| 279 | + - u7in-32tb.* |
240 | 280 | - vt1.* |
241 | 281 | - x2idn.* |
242 | 282 | - x2iedn.* |
243 | 283 | - x2iezn.* |
| 284 | + - x8g.* |
244 | 285 |
|
245 | 286 | resources: |
246 | 287 | - "arn:aws:ec2:*:*:instance/*" |
|
0 commit comments