Can I set instance metadata on my launched instance to support IMDSv2 only? - AWS Elastic Disaster Recovery

Can I set instance metadata on my launched instance to support IMDSv2 only?

You can easily set Instance Metadata Service Version 2 (IMDSv2) on your recovery instances using the EC2 launch template associated with your DRS source server.

Follow the instructions on the EC2 launch template page.

When you are redirected to the EC2 console to modify your template, take the following steps

  • Click Advanced details > Metadata version.

  • Select V2 only (token required).

You can then set this launch template as your default version.