DEV Community

Cover image for How To Create an Object Lifecycle Policy for Amazon S3
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

How To Create an Object Lifecycle Policy for Amazon S3

1. Create an S3 bucket

  • Click Create bucket

  • Set Bucket Name as Unique Name

  • Click Create bucket

  • Click Upload

  • Click Add files

  • Choose Your File and Click Upload

  • Click Test.txt

  • Check at Storage class

2. Create lifecycle rule

  • Click Your bucket name

  • Click Managment and Create lifecycle rule

  • Write lifecycyle-rule at Lifecycle rule name
  • Select Apply to all objects in the bucket
  • Click I acknowledge that this rule will apply to all objects in the bucket.

  • Select Lifecycle rule actionslike this and choose Choose storage class transitionsand write Days after object creation at Transition current versions of objects between storage classes

  • Write days at Days after object creation and Permanently delete noncurrent versions of objects

  • Click Create rule


Status: Complete ✅

Congratulations on successfully completing this.


Related Resources


Top comments (0)