AWS EBS Builder and IMDSv2

The instance that we are using for packer is being required to enforce the use of IMDSv2. Our credentials are being captured with the following code.

curl http://169.254.169.254/latest/meta-data/iam/security-credencurl http://169.254.169.254/latest/meta-data/iam/security-credentials/xxxxx-xxxx-xxxx >creds.json

Could someone please advise what the code needs to be to support this required metadata function?

Thanks

Hi @pglickenhaus , the metadata-options will be added to the amazon ebs builders in v1.7.0.