Skip to content

Commit

Permalink
Merge pull request #2 from terraform-aws-modules/master
Browse files Browse the repository at this point in the history
sync with upstream
  • Loading branch information
ChairmanTubeAmp authored Nov 3, 2017
2 parents 28028e7 + f906e73 commit 9fc70f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ resource "aws_nat_gateway" "this" {
allocation_id = "${element(aws_eip.nat.*.id, (var.single_nat_gateway ? 0 : count.index))}"
subnet_id = "${element(aws_subnet.public.*.id, (var.single_nat_gateway ? 0 : count.index))}"

tags = "${merge(var.tags, map("Name", format("%s-%s", var.name, element(var.azs, (var.single_nat_gateway ? 0 : count.index)))))}"

depends_on = ["aws_internet_gateway.this"]
}

Expand All @@ -154,6 +156,8 @@ resource "aws_route" "private_nat_gateway" {
# VPC Endpoint for S3
######################
data "aws_vpc_endpoint_service" "s3" {
count = "${var.enable_s3_endpoint}"

service = "s3"
}

Expand Down

0 comments on commit 9fc70f6

Please sign in to comment.