IMDSv2 Enforcement

Newbie questions.

We need to enforce IMDSv2 when launching our AWS instances via terraform.

In which module do I configure this as the default configuration.

Thanks

Paul

Hey Paul,

Guessing you’ve already resolved this, but you can tune the values here:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#metadata-options

Setting http_tokens to required will enable v2.

Cheers,
Grant