Low
EC2
Regional
EC2 launch templates should use Instance Metadata Service Version 2 (IMDSv2)
PCI DSS v4.0.1PCI DSS v2.2.6
Description
This check verifies whether an Amazon EC2 launch template default version is configured with Instance Metadata Service Version 2 (IMDSv2). The check fails if HttpTokens is set to optional.
Remediation
To enable IMDSv2 for your EC2 launch templates, you need to set the HttpTokens parameter to 'required' in the metadata options of the default version of the launch template.
Steps
- Open the Amazon EC2 console
- Navigate to Launch Templates
- Select the launch template you want to modify and click on the default version
- In the Advanced details section, expand 'Metadata options'
- Set 'Metadata access' to 'Required (IMDSv2)'
- Save the changes to the launch template
Compliance
PCI DSS v4.0.1PCI DSS v2.2.6