Free plan Signups are open now. The full audytx engine — Terraform and CloudFormation — is live. The Free plan is 100 scans a month and stays free — paid tiers arrive Nov 01, 2026 from $20/month for unlimited repositories. Try it on your own code.

EC2 instance has no metadata options block — IMDSv2 not configured

AWS_EC2_006 HIGH Security

What it checks

EC2 instance has no metadata options block — IMDSv2 not configured

Where it applies

Terraform: aws_instance, aws_launch_template

CloudFormation: AWS::EC2::Instance, AWS::EC2::LaunchTemplate

How to fix it

  1. Add a metadata_options block with http_tokens = "required" to the aws_instance resource. Most AWS SDKs support IMDSv2 by default.

Frameworks

These mappings are advisory, not an attestation of compliance.

Vendor documentation

All rules