Skip to content

fix tags #20

Merged
merged 1 commit into from
Apr 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions vpc-remove-defaults/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ data "aws_availability_zones" "zones" {
#---
resource "aws_default_vpc" "default" {
tags = merge(
local.common_tags,
local.base_tags,
map("Name", format("default-vpc-%s", local.vpc_title))
)
}
Expand All @@ -102,7 +102,7 @@ resource "aws_default_vpc" "default" {
#---
resource "aws_default_vpc_dhcp_options" "default" {
tags = merge(
local.common_tags,
local.base_tags,
map("Name", format("default-dhcpopt-%s", local.vpc_title))
)
}
Expand All @@ -114,7 +114,7 @@ resource "aws_default_security_group" "default" {
vpc_id = local.vpc_id

tags = merge(
local.common_tags,
local.base_tags,
map("Name", format("default-sg-%s", local.vpc_title))
)
}
Expand All @@ -127,7 +127,7 @@ resource "aws_default_subnet" "default" {
availability_zone = each.key

tags = merge(
local.common_tags,
local.base_tags,
map("Name", format("default-subnet-%s-%s", local.vpc_title, each.key))
)
}
Expand All @@ -140,7 +140,7 @@ resource "aws_default_network_acl" "default" {
default_network_acl_id = aws_default_vpc.default.default_network_acl_id

tags = merge(
local.common_tags,
local.base_tags,
map("Name", format("default-nacl-%s", local.vpc_title))
)
}
Expand All @@ -152,7 +152,7 @@ resource "aws_default_route_table" "default" {
default_route_table_id = aws_default_vpc.default.main_route_table_id

tags = merge(
local.common_tags,
local.base_tags,
map("Name", format("default-rt-%s", local.vpc_title))
)
}
Expand Down