AWS is moving towards a preference of IMDSv2. I suspect it's easy to check that box, and not support IMDSv1, and get a cryptic/deployment failure without an output reason.
Description of changes:
This passes a token inline to each metadata curl call so as to support IMDSv2.
Obviously this could be written with a single token, but putting it inline is a straightforward and testable single-line way...
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
AWS is moving towards a preference of IMDSv2. I suspect it's easy to check that box, and not support IMDSv1, and get a cryptic/deployment failure without an output reason.
Description of changes:
This passes a token inline to each metadata curl call so as to support IMDSv2.
Obviously this could be written with a single token, but putting it inline is a straightforward and testable single-line way...
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Note: I am the original author of tag-volume.config. https://github.com/awsdocs/elastic-beanstalk-samples/pull/152