-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from ministryofjustice/feature/explicit-attach…
…-json-var Adding explicit attach json policy var to avoid plan failures.
- Loading branch information
Showing
6 changed files
with
89 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module "s3-bucket" { #tfsec:ignore:aws-s3-enable-versioning | ||
source = "github.com/ministryofjustice/modernisation-platform-terraform-s3-bucket?ref=8688bc1" # Hash for v7.0.0 | ||
|
||
bucket_prefix = "data-platform-products-${local.environment}" | ||
versioning_enabled = false | ||
# Refer to the below section "Replication" before enabling replication | ||
replication_enabled = false | ||
force_destroy = true | ||
providers = { | ||
# Here we use the default provider Region for replication. Destination buckets can be within the same Region as the | ||
# source bucket. On the other hand, if you need to enable cross-region replication, please contact the Modernisation | ||
# Platform team to add a new provider for the additional Region. | ||
aws.bucket-replication = aws | ||
} | ||
|
||
lifecycle_rule = [ | ||
{ | ||
id = "main" | ||
enabled = "Enabled" | ||
prefix = "" | ||
|
||
tags = { | ||
rule = "log" | ||
autoclean = "true" | ||
} | ||
|
||
transition = [ | ||
{ | ||
days = 90 | ||
storage_class = "STANDARD_IA" | ||
}, { | ||
days = 365 | ||
storage_class = "GLACIER" | ||
} | ||
] | ||
|
||
expiration = { | ||
days = 730 | ||
} | ||
|
||
noncurrent_version_transition = [ | ||
{ | ||
days = 90 | ||
storage_class = "STANDARD_IA" | ||
}, { | ||
days = 365 | ||
storage_class = "GLACIER" | ||
} | ||
] | ||
|
||
noncurrent_version_expiration = { | ||
days = 730 | ||
} | ||
} | ||
] | ||
|
||
tags = local.tags | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters