(ECR): (Custom::ECRAutoDeleteImages fails on repo rename) #26711
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
Within the same deployment environment I perform cdk deploy for ECR repositories and images stacks
The default branch stacks deploy successfully but the feature branch deployment fails to update my stacks due to what seems to be a renaming issue on ECR repositories in connection with
Custom::ECRAutoDeleteImages
resources . This is my first errorBecause of
and then, when the rollback is attempted, the rollback fails on
because of
Note 1. that the the two error messages are different in that the initial failure includes my old repo name but the rollback failure includes the new name. Here they are side-by-side. The first one is UPDATE_FAILED, the second is UPDATE_ROLLBACK_FAILED
Note2. that all the newly named repos/images I created in ECR appeare to have deployed successfully, even though some them belonged to the failed stacks. So the issue seems to be isolated to the
Custom::ECRAutoDeleteImages
resource.Note3. Termination protection is not enabled on these tasks or repositories and specifically we have on our ECR construct.
Expected Behavior
Custom::ECRAutoDeleteImages
updated successfullyCurrent Behavior
See description section. Full errors logged there.
Reproduction Steps
cdk deploy
withthen presumably another deploy (in same stack) with
Possible Solution
Race condition with custom resource settings needs resolve.
Additional Information/Context
None
CDK CLI Version
2.2.200
Framework Version
2.89.0
Node.js Version
16
OS
Linux
Language
Python
Language Version
3.10.11
Other information
No response
The text was updated successfully, but these errors were encountered: