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

Traefik 2.3.0-rc2 - MetaDatas can't be retrieved for AWS ECS Fargate #7096

Closed
teddy-ferdinand opened this issue Jul 25, 2020 · 4 comments
Closed
Labels
area/provider/ecs kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. status/5-frozen-due-to-age
Projects
Milestone

Comments

@teddy-ferdinand
Copy link

teddy-ferdinand commented Jul 25, 2020

Do you want to request a feature or report a bug?

Bug

What did you do?

I launched Traefik in ECS Task in Fargate, with an attached task role.

What did you expect to see?

Traefik use the metadata to retrieve access_key, secret_access_key and token from metadata.
I think Traefik doesn't use the good metadata endpoint, as Fargate has a dynamic endpoint.

What did you see instead?

time="2020-07-25T08:35:22Z" level=error msg="Provider connection error EC2MetadataRequestError: failed to get EC2 instance identity document\ncaused by: RequestError: send request failed\ncaused by: Get \"http://169.254.169.254/latest/dynamic/instance-identity/document\": dial tcp 169.254.169.254:80: connect: invalid argument, retrying in 280.071208ms" providerName=ecs

Output of traefik version: (What version of Traefik are you using?)

2.3.0-rc2 (Picodon)

What is your environment & configuration (arguments, toml, provider, platform, ...)?

traefik --providers.ecs.clusters traefik-demo --api.insecure --log-level DEBUG

on Fargate ECS

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)

@jbdoumenjou jbdoumenjou added area/provider/ecs kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. and removed status/0-needs-triage labels Jul 27, 2020
@jbdoumenjou jbdoumenjou added this to issues in v2 via automation Jul 27, 2020
@rtribotte
Copy link
Member

Hi @teddy-ferdinand ,

Thanks for your interest in Traefik !

Could you try to set the credentials, as stated in this part of the documentation ?
At least, by setting up the region (eg: --providers.ecs.region="us-east-1") you should not encounter this error anymore.

@sl-teddyferdinand
Copy link

Hello, indeed, setting credentials with both CLI parameters and environments vars works (that's how I bypassed this issue temporary).

But it's not a good practice to use access_keys in AWS, because it's easier to get access_keys than temp access keys created by roles and I've to manage secret lifecycle.

@sl-teddyferdinand
Copy link

sl-teddyferdinand commented Jul 28, 2020

Wrong account, but it's still me ^^'

@mpl mpl changed the title Traefik 2.3.0-rc2 - MetaDatas can't be retrieven for AWS ECS Fargate Traefik 2.3.0-rc2 - MetaDatas can't be retrieved for AWS ECS Fargate Jul 28, 2020
@traefiker traefiker added this to the 2.3 milestone Aug 5, 2020
@traefiker
Copy link
Contributor

Closed by #7145.

v2 automation moved this from issues to Done Aug 5, 2020
@traefik traefik locked and limited conversation to collaborators Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/provider/ecs kind/bug/possible a possible bug that needs analysis before it is confirmed or fixed. status/5-frozen-due-to-age
Projects
No open projects
v2
Done
Development

No branches or pull requests

5 participants