forked from Ivasoft/traefik
Improve region resolution for ECS provider
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
This commit is contained in:
@@ -213,7 +213,10 @@ providers:
|
||||
# ...
|
||||
```
|
||||
|
||||
If `accessKeyID` / `secretAccessKey` is not provided credentials will be resolved in the following order:
|
||||
If `region` is not provided, it will be resolved from the EC2 metadata endpoint for EC2 tasks.
|
||||
In a FARGATE context it will be resolved from the `AWS_REGION` env variable.
|
||||
|
||||
If `accessKeyID` / `secretAccessKey` are not provided, credentials will be resolved in the following order:
|
||||
|
||||
- From environment variables `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_SESSION_TOKEN`.
|
||||
- Shared credentials, determined by `AWS_PROFILE` and `AWS_SHARED_CREDENTIALS_FILE`, defaults to default and `~/.aws/credentials`.
|
||||
|
||||
Reference in New Issue
Block a user