(aws-s3-deployment): (Errors on resource deletion when retainOnDelete
is set to false)
#27651
Labels
@aws-cdk/aws-s3-deployment
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
I deployed a stack using BucketDeployment construct with
reatinOnDelete=false
I then changed the construct name in the stack and redeployed.
The stack would correctly try to remove the old files, but an error is thrown:
Expected Behavior
Files are correctly removed if present
Current Behavior
An error is thrown (see above)
Reproduction Steps
Deploy something first using:
then change the construct resource name and redeploy
Possible Solution
Automatically add the necessary permission to the custom resource Lambda function
Additional Information/Context
No response
CDK CLI Version
2.99.1 (build b2a895e)
Framework Version
2.99.1
Node.js Version
v20.2.0
OS
MacOS
Language
TypeScript
Language Version
5.1.3
Other information
No response
The text was updated successfully, but these errors were encountered: