Skip to content

Commit 54498da

Browse files
CCM-16769 Adding backup selection tags
1 parent 31f8cba commit 54498da

4 files changed

Lines changed: 18 additions & 1 deletion

File tree

infrastructure/terraform/components/dl/dynamodb_table_ttl.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,10 @@ resource "aws_dynamodb_table" "ttl" {
5050
stream_enabled = true
5151
stream_view_type = "OLD_IMAGE"
5252

53-
tags = local.default_tags
53+
tags = merge(
54+
local.default_tags,
55+
{
56+
NHSE-Enable-Dynamo-Backup-Acct = "True"
57+
}
58+
)
5459
}

infrastructure/terraform/components/dl/module_s3bucket_file_safe.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ module "s3bucket_file_safe" {
3939
}
4040
}
4141
]
42+
43+
default_tags = {
44+
NHSE-Enable-S3-Backup-Acct = "True"
45+
}
4246
}
4347

4448
data "aws_iam_policy_document" "s3bucket_file_safe" {

infrastructure/terraform/components/dl/module_s3bucket_pii_data.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module "s3bucket_pii_data" {
1414
policy_documents = [data.aws_iam_policy_document.s3bucket_pii_data.json]
1515

1616
force_destroy = var.force_destroy
17+
18+
default_tags = {
19+
NHSE-Enable-S3-Backup-Acct = "True"
20+
}
1721
}
1822

1923
data "aws_iam_policy_document" "s3bucket_pii_data" {

infrastructure/terraform/components/dl/module_s3bucket_reporting.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ module "s3bucket_reporting" {
5353
}
5454
}
5555
]
56+
57+
default_tags = {
58+
NHSE-Enable-S3-Backup-Acct = "True"
59+
}
5660
}
5761

5862
data "aws_iam_policy_document" "s3bucket_reporting" {

0 commit comments

Comments
 (0)