Skip to content

Commit 033ff06

Browse files
authored
[NDR-211-truststore] Create truststore bucket for CA cert for mTLS (#396)
* NDR-211-truststore Create truststore bucket for CA cert for mTLS * NDR-211-truststore Correct spelling * NDR-211-truststore Enable bucket versioning and force destroy * NDR-211-truststore Unique bucket name
1 parent f0ab5ae commit 033ff06

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

infrastructure/buckets.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ module "ndr-bulk-staging-store" {
116116
]
117117
}
118118

119+
module "ndr-truststore" {
120+
source = "./modules/s3"
121+
access_logs_enabled = local.is_production
122+
access_logs_bucket_id = local.access_logs_bucket_id
123+
bucket_name = var.truststore_bucket_name
124+
environment = var.environment
125+
owner = var.owner
126+
enable_bucket_versioning = true
127+
force_destroy = local.is_force_destroy
128+
}
129+
119130
# Lifecycle Rules
120131
resource "aws_s3_bucket_lifecycle_configuration" "lg-lifecycle-rules" {
121132
bucket = module.ndr-lloyd-george-store.bucket_id

infrastructure/variable.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ variable "statistical_reports_bucket_name" {
5757
default = "statistical-reports"
5858
}
5959

60+
variable "truststore_bucket_name" {
61+
type = string
62+
description = "The name of the S3 bucket to store trusted CA's for MTLS"
63+
default = "ndr-truststore"
64+
}
65+
6066
# DynamoDB Table Variables
6167

6268
variable "pdm_dynamodb_table_name" {

0 commit comments

Comments
 (0)