High
EC2
Regional
Amazon EC2 instances should use Instance Metadata Service Version 2 (IMDSv2)
NIST
Description
Checks whether Amazon EC2 instances are using IMDSv2.
Remediation
To comply with this control, ensure that Amazon EC2 instances use Instance Metadata Service Version 2 (IMDSv2). Modify the instance metadata options to enforce the use of IMDSv2.
Steps
- Sign in to the AWS Management Console and open the EC2 console at https://console.aws.amazon.com/ec2/.
- In the EC2 console, click on 'Instances' in the left navigation pane.
- Select the instance you want to modify.
- Click on 'Actions', then 'Instance Settings', and select 'View/Change Instance Metadata'.
- In the 'Instance Metadata' dialog, set 'Metadata version' to 'V2'.
- Enable 'Enforce IMDSv2' by checking the box.
- Click on 'Save' to apply the changes.
- Verify that the instance is now using IMDSv2 by checking the instance metadata settings.
Compliance
NIST