Skip to content

Commit

Permalink
Add region tag to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
klejejs committed Sep 26, 2024
1 parent d720513 commit 05e8f2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stun_server/region/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ resource "aws_ecs_service" "stun-server" {
data.tfe_outputs.infrastructure.values[data.aws_region.current.name].public_subnets[1]
]
}

tags = {
region = data.aws_region.current.name
}
}

data "aws_network_interface" "stun_server_interface" {
Expand Down
4 changes: 4 additions & 0 deletions stun_server/region/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ resource "aws_security_group" "stun_sg" {
protocol = "udp"
cidr_blocks = ["0.0.0.0/0"]
}

tags = {
region = data.aws_region.current.name
}
}

0 comments on commit 05e8f2b

Please sign in to comment.