Skip to content

Commit d20a53e

Browse files
committed
refactored the mandatory tags variable to a more expressive mandated tags
1 parent 3155370 commit d20a53e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rds.postgres-main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource aws_db_instance fresh {
4747
backup_window = "21:00-23:00"
4848
maintenance_window = "mon:00:00-mon:03:00"
4949

50-
tags = merge( local.database_tags, local.fresh_database_tags, var.in_mandatory_tags )
50+
tags = merge( local.database_tags, local.fresh_database_tags, var.in_mandated_tags )
5151

5252
}
5353

@@ -91,7 +91,7 @@ resource aws_db_instance clone {
9191
backup_window = "21:00-23:00"
9292
maintenance_window = "mon:00:00-mon:03:00"
9393

94-
tags = merge( local.database_tags, local.cloned_database_tags, var.in_mandatory_tags )
94+
tags = merge( local.database_tags, local.cloned_database_tags, var.in_mandated_tags )
9595
}
9696

9797

@@ -122,7 +122,7 @@ resource aws_db_subnet_group me {
122122
name_prefix = "db-${ var.in_ecosystem_name }"
123123
description = "RDS postgres subnet group for the ${ var.in_ecosystem_name } database."
124124
subnet_ids = var.in_db_subnet_ids
125-
tags = merge( local.subnet_group_tags, var.in_mandatory_tags )
125+
tags = merge( local.subnet_group_tags, var.in_mandated_tags )
126126
}
127127

128128

rds.postgres-variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ variable in_id_of_db_to_clone {
2323
}
2424

2525
### ############################## ###
26-
### [[variable]] in_mandatory_tags ###
26+
### [[variable]] in_mandated_tags ###
2727
### ############################## ###
2828

29-
variable in_mandatory_tags {
29+
variable in_mandated_tags {
3030

3131
description = "Optional tags unless your organization mandates that a set of given tags must be set."
3232
type = map

0 commit comments

Comments
 (0)