Skip to content

Commit ede38e8

Browse files
timburke-hackittimburke55
authored andcommitted
prevent BackupPolicy tag being removed
1 parent 7989f3b commit ede38e8

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

terraform/core/07-qlik-server.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
module "qlik_server" {
22
count = local.is_live_environment ? 1 : 0
33

4-
source = "../modules/qlik-sense-server"
5-
tags = module.tags.values
4+
source = "../modules/qlik-sense-server"
5+
tags = {
6+
for key, value in module.tags.values :
7+
key => value if key != "BackupPolicy"
8+
}
69
vpc_id = data.aws_vpc.network.id
710
vpc_subnet_ids = local.subnet_ids_list
811
instance_type = var.qlik_server_instance_type

terraform/core/36-liberator-import.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ data "aws_iam_policy_document" "lambda_assume_role" {
5959
}
6060

6161
module "liberator_rds_snapshot_to_s3" {
62-
count = local.is_live_environment ? 1 : 0
63-
source = "../modules/rds-snapshot-to-s3"
64-
tags = module.tags.values
62+
count = local.is_live_environment ? 1 : 0
63+
source = "../modules/rds-snapshot-to-s3"
64+
tags = {
65+
for key, value in module.tags.values :
66+
key => value if key != "BackupPolicy"
67+
}
6568
identifier_prefix = local.identifier_prefix
6669
project = var.project
6770
environment = var.environment

0 commit comments

Comments
 (0)