1 | initial version |
Hello,
This error here: HTTPError: 401 Client Error: Unauthorized for url: http://169.254.169.254
is very likely caused by the new way of using the AWS metadata service, called IMDSv2 https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-metadata-transition-to-version-2.html .
Currently, Cloudbase-init does not support IMDSv2.
Can you please confirm that your instances use IMDSv1 or IMDSv2? In this documentation page: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-metadata-transition-to-version-2.html#recommended-path-for-requiring-imdsv2 , you can find how to check if your instance uses IMDSv2 at the section Step 4: Check if your instances are transitioned to IMDSv2
.
I have created an issue on Cloudbase-init github repository to track the addition of the IMDSV2 support here: https://github.com/cloudbase/cloudbase-init/issues/150 .
Would be great to continue this thread on the github issue link.
Thank you, Adrian Vladu