gamechanger17
gamechanger17

Reputation: 4599

Apply same Lifecycle rule to multiple buckets

I have created a lifecycle rule for 1 s3 bucket. Is there any method by which I can apply that rule to all the buckets/multiple S3 buckets or do I have to manually add same rule one by one.

Upvotes: 4

Views: 1373

Answers (2)

Jatin Mehrotra
Jatin Mehrotra

Reputation: 11576

No, you cannot. Lifecycle rules are applied per bucket, they cannot (yet?) be created independently of them. The flexibility they offer in terms of targeting objects is purely with a bucket where they can be applied to either all objects within this bucket or only a subset (filter on prefix).

if you want automate why not use Infrastructure as a code tool like terraform or cloud formation

Upvotes: 1

There is no option where you can apply the same lifecycle rule to multiple buckets. You have to manually update for each bucket

Upvotes: 1

Related Questions