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

Container credentials provider doesn't discover ECS Fargate creds #33

Closed
ghadishayban opened this issue Jan 4, 2019 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@ghadishayban
Copy link
Contributor

(some-> (or (when-let [relative-uri (u/getenv ecs-container-credentials-path-env-var)]
(some->> (ec2-metadata-utils/get-items-at-path relative-uri)
first
(str relative-uri)
ec2-metadata-utils/get-data-at-path))
(when-let [full-uri (u/getenv ecs-container-credentials-full-uri-env-var)]
(some->> (ec2-metadata-utils/get-items full-uri {})
first
(str full-uri)
(URI.)
ec2-metadata-utils/get-data)))

ECS should pull credentials from a different endpoint than EC2 (169.254.170.2 vs 169.254.169.254 respectively)

@dchelimsky dchelimsky added the bug Something isn't working label Jan 6, 2019
@dchelimsky
Copy link
Contributor

I've got a proposed fix on the issue-33-ecs-creds branch. In review.

@dchelimsky
Copy link
Contributor

This is fixed on master but not yet released.

@dchelimsky
Copy link
Contributor

Released in 0.8.198.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants