I recently read about the new Instance Metadata Service - IMDSv2 that fixes SSRF attacks in an EC2 environment. I understand how it works when I directly use EC2 over the cli. But I couldn't find any information what steps to take to use it in elastic beanstalk which handles EC2 instance creation on my behalf and how to enforce it there.
Can somebody tell me if this already is or will be possible in the future? I couldn't find information on that.
Thanks in advance.
Update: In addition to all the responses, we had to increase the HttpPutResponseHopLimit
to 2, because we were using docker in EB which needs an extra hop out of the docker environment.