Skip to content

Commit

Permalink
fix the igw tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohan Yadav committed Nov 4, 2019
1 parent 5c9fc8e commit 3381ea4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ module "s3_bucket" {
}

module "vpc" {
source = "git::https://github.com/clouddrove/terraform-aws-vpc.git?ref=tags/0.12.1"
source = "git::https://github.com/clouddrove/terraform-aws-vpc.git?ref=tags/0.12.3"

name = "vpc"
application = "clouddrove"
environment = "test"
label_order = ["environment", "name", "application"]
label_order = ["environment", "application", "name"]

cidr_block = "10.0.0.0/16"

Expand Down
7 changes: 6 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ resource "aws_internet_gateway" "default" {
count = var.vpc_enabled == true ? 1 : 0

vpc_id = element(aws_vpc.default.*.id, count.index)
tags = module.labels.tags
tags = merge(
module.labels.tags,
{
"Name" = format("%s-igw", module.labels.id)
}
)
}

#Module : FLOW LOG
Expand Down

0 comments on commit 3381ea4

Please sign in to comment.