Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud detect failing for ec2 #1813

Closed
vjeffrey opened this issue Sep 20, 2023 · 2 comments · Fixed by #1966
Closed

cloud detect failing for ec2 #1813

vjeffrey opened this issue Sep 20, 2023 · 2 comments · Fixed by #1966
Labels

Comments

@vjeffrey
Copy link
Contributor

DBG run command command="curl http://169.254.169.254/latest/dynamic/instance-identity/document" provider=ssh
DBG failed to get AWS platform id error="failed to decode EC2 instance identity document: invalid character '<' looking for beginning of value" platform=["linux","unix","os"]
@vjeffrey vjeffrey added v9 v9.1 and removed v9 labels Sep 20, 2023
@vjeffrey
Copy link
Contributor Author

looks like we now need to fetch from
const identityUrl = "TOKEN=curl -X PUT "http://169.254.169.254/latest/api/token\" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600" && curl -H \"X-aws-ec2-metadata-token: $TOKEN\" -v http://169.254.169.254/latest/dynamic/instance-identity/document"

@tas50
Copy link
Member

tas50 commented Sep 28, 2023

IMDSv2 is required by our policies so we need to snag tokens now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants