-
Notifications
You must be signed in to change notification settings - Fork 16
aws cli v2 support #39
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
Conversation
hooks/lib/ecr-registry-provider.bash
Outdated
| local aws_cli_version=$(aws --version 2>&1 | cut -d " " -f1 | cut -d "/" -f2) | ||
|
|
||
| if [[ $aws_cli_version =~ ^1 ]]; then | ||
| $(aws ecr get-login --no-include-email) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS CLI V1 also supports get-login-password and has get-login marked as deprecated.
I'd be keen for us to drop this entirely; we can do a major version increment if need be. I'm not sure which V1 version added get-login-password but I think it's been around for years at this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that simplifies it a lot in that case. Will push an update shortly
…tion from plugin config
| } | ||
|
|
||
| get_ecr_region() { | ||
| echo "${BUILDKITE_PLUGIN_DOCKER_ECR_CACHE_REGION:-${AWS_DEFAULT_REGION:-eu-west-1}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we've used eu-west-1 for consistency across the ECR plugins
72636c
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙇
Co-authored-by: Ryan Ling <[email protected]>
| - docker#v3.8.0 | ||
| ``` | ||
|
|
||
| #### Specifying a region |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
README 😍
Adds support for aws-cli v2, which is installed by default on newer versions of Elastic CI.
Maintains backwards compatibility with aws-cli v1.17.10 (released in Febuary 2020) or later