Skip to content

Commit

Permalink
Temporarily disable manifest file GC in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Nov 21, 2024
1 parent b6dc95f commit 156daf8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/modules/dandiset_bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "expire_noncurrent_manifest_fil
# Must have bucket versioning enabled first
depends_on = [aws_s3_bucket_versioning.dandiset_bucket]

count = var.versioning ? 1 : 0
count = var.versioning ? 1 : 0 && var.enable_manifest_file_expiration

bucket = aws_s3_bucket.dandiset_bucket.id

Expand Down
7 changes: 7 additions & 0 deletions terraform/modules/dandiset_bucket/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,10 @@ variable "log_bucket_name" {
type = string
description = "The name of the log bucket."
}

# TODO: remove this after it's ready to be enabled in production
variable "enable_manifest_file_expiration" {
type = bool
description = "Whether or not to enable expiration of manifest files."
default = false
}
1 change: 1 addition & 0 deletions terraform/staging_bucket.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module "staging_dandiset_bucket" {
aws = aws
aws.project = aws
}
enable_manifest_file_expiration = true
}

module "staging_embargo_bucket" {
Expand Down

0 comments on commit 156daf8

Please sign in to comment.