Skip to content

Commit

Permalink
Add lifecycle rule for job prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jterry64 committed Aug 13, 2024
1 parent 9aae7ea commit 914c259
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions terraform/lifecycle.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resource "aws_s3_bucket_lifecycle_configuration" "example" {
bucket = data.terraform_remote_state.core.outputs.pipelines_bucket

rule {
id = "expire-jobs"

filter {
prefix = "analysis/jobs/"
}

expiration {
days = 90
}

status = "Enabled"
}
}

0 comments on commit 914c259

Please sign in to comment.