Skip to content

ecr: switch implementation to use the AWS SDK#126

Merged
crazy-max merged 2 commits intodocker:masterfrom
crazy-max:aws-sdk
Dec 20, 2021
Merged

ecr: switch implementation to use the AWS SDK#126
crazy-max merged 2 commits intodocker:masterfrom
crazy-max:aws-sdk

Conversation

@crazy-max
Copy link
Copy Markdown
Member

Follow-up #114 (review)
Fixes #125

@Flydiverny Now using the AWS SDK so we don't need to rely on the AWS CLI.

With this we are also able to authenticate on Windows runners.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max crazy-max merged commit b20b9f5 into docker:master Dec 20, 2021
@crazy-max crazy-max deleted the aws-sdk branch December 20, 2021 09:51
Copy link
Copy Markdown
Contributor

@Flydiverny Flydiverny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
I tested docker/login-action@42ba9a1dc8ea3ab85b1c32bdcb2bff18ba03c94f (before last force-push) on our self-hosted (linux) runner without providing any input credentials and it worked as expected for that use case 👍

I was thinking maybe we could use the v3 aws-sdk lib instead of the v2 one, ie @aws-sdk/client-ecr and @aws-sdk/client-ecr-public. I tried to make these changes locally but for some reason docker buildx bake validation fails saying there's diffs to output. Seems to be CRLF vs LF issue 😅
It seemed to reduce the dist size a bit since v3 sdk is modular.

@Flydiverny
Copy link
Copy Markdown
Contributor

#128 if you're curious

@aramalipoor
Copy link
Copy Markdown

aramalipoor commented Dec 20, 2021

FYI from ~1 hour when this PR is merged our pipelines started failing to login to AWS ECR, it could be related to the changes here.

image

Using exact version v1.10.0 is working.

@crazy-max
Copy link
Copy Markdown
Member Author

@aramalipoor Can you add a comment with your workflow in #129 please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Amazon ECR Private login fails on Windows

3 participants