Skip to content

Commit

Permalink
chore: Update example-rds-instance and rds-aurora modules
Browse files Browse the repository at this point in the history
Update the example-rds-instance and rds-aurora modules in the common-infra directory. This commit adds additional tags to the exampledb and exampledb-security-group resources, including a "Name" tag with the value of "${module.label.id}-exampledb" and "${module.label.id}-exampledb-security-group" respectively.
  • Loading branch information
ulises-jeremias committed Sep 24, 2024
1 parent 6b4d352 commit 93d489e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions live/common-infra/example-rds-instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ module "exampledb" {

vpc_security_group_ids = [module.security_group.this_security_group_id]

tags = module.label.tags
tags = merge(
module.label.tags,
{
"Name" = "${module.label.id}-exampledb"
}
)
}

module "security_group" {
Expand All @@ -51,7 +56,12 @@ module "security_group" {

egress_rules = ["all-all"]

tags = var.tags
tags = merge(
module.label.tags,
{
"Name" = "${module.label.id}-exampledb-security-group"
}
)
}

output "example_db_instance_address" {
Expand Down

0 comments on commit 93d489e

Please sign in to comment.