Skip to content

eversonleal/terraform-buckets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Terraform - Buckets to Store Reports

Terraform module to provide S3 Buckets dynamically

Installation

Clone this repo

Usage

  1. Setup AWS CLI;
  2. Create Terraform variables file "terraform.tfvars" with the below content:
bucket_name="reports-store"

lifecycle_rule = {
  hourly = {
    transition = 10,
    storage_class = "STANDARD_IA"
  },
  daily = {
    transition = 30,
    storage_class = "GLACIER"
  },
  weekly = {
    transition = 60,
    storage_class = "DEEP_ARCHIVE"
  }
}

The result will be three buckets named as reports-store-[key-name].

  1. Run Terraform;
terraform init
terraform plan
  1. Check if everything is ok to proceed, then apply;
terraform apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages