AWS CloudFormation Stack Update scenarios with 'Resource update cancelled' scenarios on S3 Bucket
I just started working with I'm working on a project and hit a roadblock. I'm having trouble with I'm experiencing an scenario while trying to update my AWS CloudFormation stack that includes an S3 bucket. The stack update fails with the behavior message: `Resource update cancelled`. This is happening when I attempt to change the bucket's versioning configuration from `Suspended` to `Enabled`. Hereβs the relevant part of my CloudFormation template: ```yaml Resources: MyS3Bucket: Type: 'AWS::S3::Bucket' Properties: BucketName: my-example-bucket VersioningConfiguration: Status: Enabled ``` Before this update, I successfully suspended versioning on the bucket via the CloudFormation stack. However, when I try to apply this new versioning setting, the update fails without any additional context. I have checked the CloudFormation events, and all I see is the `Resource update cancelled` message, but it doesn't provide details on what could be causing this. I've also tried using the AWS CLI to update the bucket's versioning setting directly by running: ```bash aws s3api put-bucket-versioning --bucket my-example-bucket --versioning-configuration Status=Enabled ``` This command executes successfully, which leads me to believe the scenario is related to CloudFormation itself. I've verified that the S3 bucket is not part of any other stacks and doesn't have any dependencies that would prevent the update. I've also confirmed that there are no conflicting resources in the stack. Can anyone guide to understand why the stack update is getting cancelled and how I can successfully enable versioning on my S3 bucket from CloudFormation? Is there a specific limitation or configuration in CloudFormation for S3 buckets that I might be overlooking? I'm using Yaml stable in this project. I'm working on a desktop app that needs to handle this. I'd be grateful for any help. What's the best practice here?