This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
aws-cdk-lib/aws-s3: How to add depend on
between s3 bucket policy and event notification?
#27644
Labels
Describe the feature
I am using CDK to deploy s3 bucket and also add an event notification on that bucket. The code I have is:
The problem I have is I got a deployment error: Resource handler returned message:
"A conflicting conditional operation is currently in progress against this resource. Please try again.
It says there are multiple operations tried to deploy at the same time which conflict with each other. When examining the cloud trail, I found there are two events happened at the same time period, one is PutBucketPolicy, the other is PutBucketNotification.
How can I add depend_on between PutBucketPolicy and PutBucketNotification?
Use Case
Solve conflict error during deployment
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
"aws-cdk": "^2.80.0",
Environment details (OS name and version, etc.)
Mac 14
The text was updated successfully, but these errors were encountered: