Skip to content

Commit 9b148b5

Browse files
author
AWS
committed
Amazon Elastic Compute Cloud Update: Adds httpTokensEnforced property to ModifyInstanceMetadataDefaults API. Set per account or manage organization-wide using declarative policies to prevent IMDSv1-enabled instance launch and block attempts to enable IMDSv1 on existing IMDSv2-only instances.
1 parent b22bee3 commit 9b148b5

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Elastic Compute Cloud",
4+
"contributor": "",
5+
"description": "Adds httpTokensEnforced property to ModifyInstanceMetadataDefaults API. Set per account or manage organization-wide using declarative policies to prevent IMDSv1-enabled instance launch and block attempts to enable IMDSv1 on existing IMDSv2-only instances."
6+
}

services/ec2/src/main/resources/codegen-resources/service-2.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8620,7 +8620,7 @@
86208620
"locationName":"quantity"
86218621
},
86228622
"AvailabilityZone":{
8623-
"shape":"String",
8623+
"shape":"AvailabilityZoneName",
86248624
"documentation":"<p>The Availability Zone in which to allocate the Dedicated Host.</p>",
86258625
"locationName":"availabilityZone"
86268626
}
@@ -20786,6 +20786,14 @@
2078620786
}
2078720787
},
2078820788
"DefaultEnaQueueCountPerInterface":{"type":"integer"},
20789+
"DefaultHttpTokensEnforcedState":{
20790+
"type":"string",
20791+
"enum":[
20792+
"disabled",
20793+
"enabled",
20794+
"no-preference"
20795+
]
20796+
},
2078920797
"DefaultInstanceMetadataEndpointState":{
2079020798
"type":"string",
2079120799
"enum":[
@@ -40993,6 +41001,13 @@
4099341001
"max":23,
4099441002
"min":0
4099541003
},
41004+
"HttpTokensEnforcedState":{
41005+
"type":"string",
41006+
"enum":[
41007+
"disabled",
41008+
"enabled"
41009+
]
41010+
},
4099641011
"HttpTokensState":{
4099741012
"type":"string",
4099841013
"enum":[
@@ -44115,6 +44130,11 @@
4411544130
"shape":"String",
4411644131
"documentation":"<p>The customized exception message that is specified in the declarative policy.</p>",
4411744132
"locationName":"managedExceptionMessage"
44133+
},
44134+
"HttpTokensEnforced":{
44135+
"shape":"HttpTokensEnforcedState",
44136+
"documentation":"<p>Indicates whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (<code>HttpTokens</code>) is set to <code>required</code>.</p>",
44137+
"locationName":"httpTokensEnforced"
4411844138
}
4411944139
},
4412044140
"documentation":"<p>The default instance metadata service (IMDS) settings that were set at the account level in the specified Amazon Web Services&#x2028; Region.</p>"
@@ -53717,6 +53737,10 @@
5371753737
"DryRun":{
5371853738
"shape":"Boolean",
5371953739
"documentation":"<p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"
53740+
},
53741+
"HttpTokensEnforced":{
53742+
"shape":"DefaultHttpTokensEnforcedState",
53743+
"documentation":"<p>Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (<code>HttpTokens</code>) is set to <code>required</code>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#enforce-imdsv2-at-the-account-level\">Enforce IMDSv2 at the account level</a> in the <i>Amazon EC2 User Guide</i>.</p>"
5372053744
}
5372153745
}
5372253746
},

0 commit comments

Comments
 (0)