You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a stack that uses ECRDeployment to upload an image to an ecr.Repository that's been created with RemovalPolicy.DESTROY.
Unfortunately, this is making stack deletion fail because the ECR repository is not emptied out. As far as I can tell, this construct offers no removalPolicy parameter and the Custom resource Lambda entry point ignores delete requests.
Is my assessment right? Would it be possible to implement resource deletion, perhaps behind a removalPolicy option so that only users who explicitly request deletion see it? The repo and image are fully managed by the CDK app in our current case, so it'd be much preferred for the app to clean up after itself when destroyed. Thanks!
The text was updated successfully, but these errors were encountered:
Hi folks,
I have a stack that uses
ECRDeployment
to upload an image to anecr.Repository
that's been created withRemovalPolicy.DESTROY
.Unfortunately, this is making stack deletion fail because the ECR repository is not emptied out. As far as I can tell, this construct offers no
removalPolicy
parameter and the Custom resource Lambda entry point ignores delete requests.Is my assessment right? Would it be possible to implement resource deletion, perhaps behind a
removalPolicy
option so that only users who explicitly request deletion see it? The repo and image are fully managed by the CDK app in our current case, so it'd be much preferred for the app to clean up after itself when destroyed. Thanks!The text was updated successfully, but these errors were encountered: