You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add support for resolving AWS profiles per account. (#209)
Introduced logic to resolve AWS profiles using account-specific environment variables, shared configuration, or a default profile. This ensures better flexibility in handling multiple AWS accounts and their configurations.
Copy file name to clipboardExpand all lines: README.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,3 @@
1
-
2
1
# Docker Credentials from the Environment
3
2
4
3
A [Docker credential helper](https://docs.docker.com/engine/reference/commandline/login/#credential-helpers) to streamline repository interactions in scenarios where the cacheing of credentials to `~/.docker/config.json` is undesirable, including CI/CD pipelines, or anywhere ephemeral credentials are used.
@@ -28,6 +27,19 @@ If no environment variables for the target repository's FQDN is found, then:
28
27
*`AWS_SECRET_ACCESS_KEY_<account_id>`
29
28
*`AWS_SESSION_TOKEN_<account_id>` (optional)
30
29
*`AWS_ROLE_ARN_<account_id>` (optional)
30
+
*`AWS_PROFILE_<account_id>` (optional)
31
+
32
+
### AWS Profile Selection
33
+
34
+
The helper supports using AWS named profiles for authentication:
35
+
36
+
*`AWS_PROFILE`: Specifies which profile to use from your AWS shared configuration files. This is used when no account-specific credentials or profile is found.
37
+
*`AWS_PROFILE_<account_id>`: Account-specific profile selection. When accessing an ECR repository for a specific AWS account, you can set this environment variable to use a specific named profile from your AWS shared configuration files.
38
+
39
+
The profile selection follows this order of precedence:
0 commit comments