Skip to content

Commit fca80f6

Browse files
author
jslopes
committed
add tag on subnet
1 parent f990557 commit fca80f6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ resource "aws_subnet" "public" {
5858
{
5959
Name = lookup(var.subnet_public[count.index], "tag_name", null)
6060
},
61-
var.default_tags
61+
var.default_tags,
62+
var.tags_public
6263
)
6364
}
6465

variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ variable "subnet_public" {
4545
type = any
4646
default = []
4747
}
48+
variable "tag_public" {
49+
type = map(string)
50+
default = {}
51+
}
4852
variable "enable_nat_gateway" {
4953
type = bool
5054
default = false

0 commit comments

Comments
 (0)