Skip to content

Commit 992e048

Browse files
author
gustavderdrache
authored
Merge pull request #50 from forumone/aws-resource-tagging
Apply more tags to more AWS resources
2 parents 0979a22 + 56c11d2 commit 992e048

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

cluster/rds_mysql.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ module "mysql" {
2525
apply_immediately = true
2626
monitoring_interval = 5
2727

28-
tags = local.tags
28+
tags = local.tags
29+
cluster_tags = local.tags
30+
copy_tags_to_snapshot = true
2931
}
3032

3133
resource "aws_secretsmanager_secret" "mysql_root_credentials" {

cluster/rds_postgresql.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ module "postgresql" {
2121
apply_immediately = true
2222
monitoring_interval = 5
2323

24-
tags = local.tags
24+
tags = local.tags
25+
cluster_tags = local.tags
26+
copy_tags_to_snapshot = true
2527
}
2628

2729
resource "aws_secretsmanager_secret" "postgresql_root_credentials" {

cluster/vpc.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ module "vpc" {
4242
elasticache_subnet_enable_dns64 = false
4343

4444
tags = var.tags
45+
46+
nat_gateway_tags = var.tags
4547
}
4648

4749
module "endpoints" {

0 commit comments

Comments
 (0)