Difference between revisions of "Transition to using Instance Metadata Service Version 2"

From wikieduonline
Jump to navigation Jump to search
(Created page with " == See also == * {{IMDS}} Category:IMDS")
 
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-metadata-transition-to-version-2.html
  
 +
* [[CloudWatch]]: <code>[[MetadataNoToken]]</code>
  
 +
* Use an AMI that configures [[IMDSv2]] by default
 +
** <code>[[HttpTokens]]</code> set to required
 +
** <code>[[aws ec2 modify-instance-metadata-defaults --http-tokens]]</code>
 +
*** [[Terraform resource: aws ec2 instance metadata defaults]]
 +
** <code>[[aws ec2 modify-instance-metadata-options]]</code>
 +
 +
Terraform:
 +
* <code>[[metadata_options]]</code>: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#metadata-options
 +
** <code>[[http_tokens]] = required</code>
 +
 +
== Related ==
 +
* [[Datadog: EC2 instances should enforce IMDSv2]]
 +
* <code>[[ec2-imdsv2-check]]</code>
 +
* <code>[[aws_instance]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 09:32, 28 June 2024

Advertising: