Skip to content

Commit

Permalink
Merge pull request #15 from girder/lifecycle
Browse files Browse the repository at this point in the history
Add a lifecycle rule to the assetstore, to clean up incomplete uploads
  • Loading branch information
brianhelba authored Feb 9, 2021
2 parents b9a3f7c + c1f34d8 commit fb683df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/assetstore/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ resource "aws_s3_bucket" "assetstore" {
}
}

lifecycle_rule {
enabled = true
abort_incomplete_multipart_upload_days = 7
}

cors_rule {
allowed_headers = ["*"]
allowed_methods = ["POST", "PUT"]
Expand Down

0 comments on commit fb683df

Please sign in to comment.