Skip to content

Instantly share code, notes, and snippets.

@simplytunde
Last active July 27, 2016 19:50
Show Gist options
  • Save simplytunde/cc38c92d91575e5ee3a3f6e9ae0d3f7d to your computer and use it in GitHub Desktop.
Save simplytunde/cc38c92d91575e5ee3a3f6e9ae0d3f7d to your computer and use it in GitHub Desktop.
AWS S3 Lifecycle Configuration
{
  "Rules":[
    {
      "ID":"Moving my special dir",
      "Prefix":"dir/",
      "Status":"Enabled",
      "Transitions":[
        {
        "Days":90,
        "StorageClass":"STANDARD_IA"
      },
      {
        "Days":120,
        "StorageClass":"GLACIER"
      }
      ],
      "Expiration":{
        "Days":455
      },
      "NoncurrentVersionTransitions":[
        {
        "NoncurrentDays":30,
        "StorageClass":"STANDARD_IA"
      }
    ],
      "NoncurrentVersionExpiration":{
        "NoncurrentDays":455
      },
      "AbortIncompleteMultipartUpload":{
        "DaysAfterInitiation":4
      }
    }
  ]
}

This is for those that needs to configure s3 versioning and nonversioning bucket bucket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment