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

Support private ECR-only bundle generation and promotion #1005

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

abhay-krishna
Copy link
Member

Support private ECR-only bundle generation and promotion.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eks-distro-bot eks-distro-bot added approved size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 25, 2023
@@ -7,6 +7,7 @@
"382577505035.dkr.ecr.us-west-2.amazonaws.com": "ecr-login",
"646717423341.dkr.ecr.us-west-2.amazonaws.com": "ecr-login",
"783794618700.dkr.ecr.us-west-2.amazonaws.com": "ecr-login",
"067575901363.dkr.ecr.us-west-2.amazonaws.com": "ecr-login",
Copy link
Member

Choose a reason for hiding this comment

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

do we need all the other registries added here too?

Copy link
Member Author

Choose a reason for hiding this comment

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

Since we're building only to this account, this should suffice. The replication happens outside of this Go code.

@jonathanmeier5
Copy link
Member

what does NewBuildMode do?

@abhay-krishna
Copy link
Member Author

what does NewBuildMode do?

Currently we're running builds from the other CDK's build pipelines too, and both share the same repo. Currently the process involves public ECR operations which wouldn't work for the new packages pipelines since they're pushing to regional ECR and not public ECR. So on the packages CDK build projects, we're setting the env var and checking for it here and that helps us perform private ECR-only client creation and operations.

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abhay-krishna, jonathanmeier5

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [abhay-krishna,jonathanmeier5]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jonathanmeier5
Copy link
Member

/lgtm

@eks-distro-bot eks-distro-bot merged commit 2363414 into aws:main Oct 25, 2023
3 checks passed
@abhay-krishna abhay-krishna deleted the private-ecr branch March 7, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants