Adding IMDSv2 support. Removing custom metadata function in favor of
aws api available in the sdk.
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
What this PR does / why we need it:
IMDSv2 only nodes will not be able to respond to the previous metadata url. AWS SDK has the ability to try both v2 and v1.
Which issue(s) this PR fixes (optional)
Closes #
Special notes for your reviewer:
Testing: Ran px on a IMDSv2 only node.
What this PR does / why we need it: IMDSv2 only nodes will not be able to respond to the previous metadata url. AWS SDK has the ability to try both v2 and v1.
Which issue(s) this PR fixes (optional) Closes #
Special notes for your reviewer: Testing: Ran px on a IMDSv2 only node.