Skip to content

Commit

Permalink
Add expiration for partially and fully uploaded S3 objects (#3043)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackdna authored and scottx611x committed Oct 12, 2018
1 parent 5283608 commit 22df7ec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deployment/terraform/modules/s3/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ resource "aws_s3_bucket" "uploaded_files" {
expose_headers = ["ETag"]
max_age_seconds = 3000
}

lifecycle_rule {
enabled = true
abort_incomplete_multipart_upload_days = 1
expiration {
days = 7
}
}
}

resource "aws_s3_bucket" "media_files" {
Expand Down

0 comments on commit 22df7ec

Please sign in to comment.