S3 bucket content deleted after cloudformation update #21842
Unanswered
sandrolain
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I recently encountered a serious problem updating a cloudformation via cdk.
The deployed stack includes the creation or updating of multiple corporate CDNs using S3 and cloudfront and the uploading of a static file as CustomResource.
The same operation with the same TypeScript CDK version (1.22.0) has been performed several times in the past without problems.
In the last run, some update operations took place that in the past have never been requested, with message:
"Requested update required the provider to create a new physical resource"
and subsequent error
"Received response status [FAILED] from custom resource. Message returned: An error occurred (Throttling) when calling the CreateInvalidation operation (reached max retries: 4): Rate exceeded"
At the end the stack was reported in UPDATE_ROLLBACK_FAILED.
The serious thing is that all the files present in the previously created S3 buckets have been deleted (Delete marker), with the need to manually restore them via the AWS console or CLI.
From subsequent checks I have not found any CloudFormation logs or events related to the deletion of individual objects in the S3 buckets, and therefore to date I do not understand if a new execution could cause the same problem.
I thank those who will be able to provide an explanation
Beta Was this translation helpful? Give feedback.
All reactions