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

Bootstrap container repository can be deleted in linked accounts #693

Open
6 tasks done
dbaileyut opened this issue Jan 9, 2025 · 1 comment
Open
6 tasks done
Labels
bug Something isn't working

Comments

@dbaileyut
Copy link

dbaileyut commented Jan 9, 2025

Describe the bug
Folks with sufficient privileges in workload accounts can delete the "cdk-accel-container-assets-[AccountNumber]-[region]" ECR repository resulting in a failed upgrade in the Bootstrap action of the Booststrap stage and the error:

AWSAccelerator-CDKToolkit | 0/14 | 10:37:08 PM | UPDATE_FAILED | AWS::ECR::Repository | ContainerAssetsRepository Resource handler returned message: "The repository with name 'cdk-accel-container-assets-[WorkloadAccountNumber]-us-east-1' does not exist in the registry with id '[WorkloadAccountNumber]' (Service: Ecr, Status Code: 400, Request ID: [GUID])" (RequestToken: [GUID], HandlerErrorCode: NotFound)

To Reproduce
In a workload account, delete the "cdk-accel-container-assets-[AccountNumber]-[region]" repository and attempt an LZA upgrade.

Expected behavior
A policy should prevent the repository from being deleted except from the management account.

Please complete the following information about the solution:

  • Version: v1.11.0 (upgrading from v1.9.1)
  • Region: us-east-1
  • Was the solution modified from the version published on this repository? No
  • If the answer to the previous question was yes, are the changes available on GitHub? N/A
  • Have you checked your service quotas for the services this solution uses? Yes
  • Were there any errors in the CloudWatch Logs? No

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).

Additional context
Add any other context about the problem here.

@dbaileyut dbaileyut added the bug Something isn't working label Jan 9, 2025
@Athanasii
Copy link
Contributor

Thank you for the report. We are looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants