Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Adding lifecycle rule to S3/CDN static asset buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
kfferrando committed Jul 15, 2019
1 parent 1d5634d commit 6404946
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions k8s/tf/50_cdn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ terraform {
resource "aws_s3_bucket" "logs" {
bucket = "mozit-sumo-user-media-logs"
acl = "log-delivery-write"

lifecycle_rule {
enabled = true

expiration {
days = 14
}
}

}

module "sumo-user-media-dev-bucket" {
Expand Down Expand Up @@ -57,6 +66,14 @@ module "sumo-user-media-prod-bucket" {
resource "aws_s3_bucket" "static-media-logs" {
bucket = "mozit-sumo-static-media-logs"
acl = "log-delivery-write"

lifecycle_rule {
enabled = true

expiration {
days = 14
}
}
}

module "sumo-static-media-stage-bucket" {
Expand Down

0 comments on commit 6404946

Please sign in to comment.