amazon-web-servicesamazon-s3

How to apply BucketPolicy (LifecycleConfiguration) to an existing bucket using CloudFormation template?


I have several buckets that are created using console and I want to apply How to apply LifecycleConfiguration to those existing buckets, is it possible if so how?


Solution

  • It's not possible to update existing resources with CloudFormation.

    If you want to apply lifecycle policies, you can either recreate the buckets with CloudFormation and specify the LifecycleConfiguration property or use the console/CLI to update your existing buckets.