Skip to content

Commit bd0ce6b

Browse files
committed
NRL-853 fix tags for table and buckets
1 parent a4a9fd8 commit bd0ce6b

File tree

3 files changed

+7
-2
lines changed
  • terraform/account-wide-infrastructure/modules

3 files changed

+7
-2
lines changed

terraform/account-wide-infrastructure/modules/permissions-store-bucket/s3.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ resource "aws_s3_bucket" "authorization-store" {
22
bucket = "${var.name_prefix}-authorization-store"
33
force_destroy = var.enable_bucket_force_destroy
44

5-
tags = {
5+
tags = var.enable_backups ? {
6+
Name = "authorization store"
7+
Environment = "${var.name_prefix}"
8+
NHSE-Enable-Backup = "daily"
9+
} : {
610
Name = "authorization store"
711
Environment = "${var.name_prefix}"
812
}

terraform/account-wide-infrastructure/modules/pointers-table/dynamodb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ resource "aws_dynamodb_table" "pointers" {
5252
enabled = var.enable_pitr
5353
}
5454

55-
tags = var.enable_backups ? { NHSE-Enable-Backup : daily } : {}
55+
tags = var.enable_backups ? { NHSE-Enable-Backup = "daily" } : {}
5656
}

terraform/account-wide-infrastructure/modules/truststore-bucket/s3.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
resource "aws_s3_bucket" "api_truststore" {
22
bucket = "${var.name_prefix}-api-truststore"
33
force_destroy = var.enable_bucket_force_destroy
4+
tags = var.enable_backups ? { NHSE-Enable-Backup = "daily" } : {}
45
}
56

67
resource "aws_s3_bucket_policy" "api_truststore_bucket_policy" {

0 commit comments

Comments
 (0)