thinkstack-co / terraform-modules

Terraform modules
MIT License
7 stars 4 forks source link

Dev s3 lifecycle #115

Closed jakeasarus closed 1 year ago

jakeasarus commented 1 year ago

S3 overhaul to allow lifecycle rules which scale with the quantity of rules you need.

jakeasarus commented 1 year ago

S3 Lifecycle Policies Feature

  1. Adds ability to set a lifecycle policy with 1 action.
  2. Bool using count to either true/false to create a lifecycle rule. (defaults to false)
  3. Ability to create lifecycle policy, but have it be disabled for troubleshooting.
  4. Allows prefix to set a subdirectory where rule starts.

Successful terraform run using branch Terraform Plan

Umbrella bucket was updated to test the default to false, lifecycle was not created. Cloudberry bucket was set to true to keep the bucket from growing to 11TB again. Lifecycle rule created.

Merge commit

zachreborn commented 1 year ago

This module overhauls the following: