Skip to content

Commit

Permalink
Merge pull request #9172 from ministryofjustice/increase-expiration
Browse files Browse the repository at this point in the history
extend landing bucket retention
  • Loading branch information
matt-heery authored Dec 27, 2024
2 parents 720d617 + a1571d8 commit 32e7cce
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module "this-bucket" {
source = "github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=f759060"

bucket_prefix = "${var.local_bucket_prefix}-land-${var.data_feed}-${var.order_type}-"
versioning_enabled = false
versioning_enabled = true

# to disable ACLs in preference of BucketOwnership controls as per https://aws.amazon.com/blogs/aws/heads-up-amazon-s3-security-changes-are-coming-in-april-of-2023/ set:
ownership_controls = "BucketOwnerEnforced"
Expand Down Expand Up @@ -49,7 +49,18 @@ module "this-bucket" {
}

expiration = {
days = 7
days = 30
}

noncurrent_version_transition = [
{
days = 30
storage_class = "GLACIER"
}
]

noncurrent_version_expiration = {
days = 90
}
}
]
Expand Down

0 comments on commit 32e7cce

Please sign in to comment.