Skip to content

Commit

Permalink
Merge pull request #3 from osodevops/update-route53
Browse files Browse the repository at this point in the history
Updated the vpc module to allow for the route 53 association to compl…
  • Loading branch information
richardgutkowski authored Apr 24, 2019
2 parents 65315de + 3ef1838 commit 021fcf1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions aws_eip.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
resource "aws_eip" "nateip" {
count = 3
vpc = true
tags = "${var.common_tags}"
}
1 change: 0 additions & 1 deletion aws_nat_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ resource "aws_nat_gateway" "natgateway" {
count = 3
allocation_id = "${element(aws_eip.nateip.*.id, count.index)}"
subnet_id = "${element(aws_subnet.public.*.id, count.index)}"
public_ip = "${element(aws_eip.nateip.*.public_ip, count.index)}"

tags {
Name = "${var.account_name}-AZ${count.index+1}"
Expand Down
3 changes: 2 additions & 1 deletion aws_route53_zone_private.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "aws_route53_zone" "private" {
comment = "Managed by Terraform"
name = "${lower(var.account_name)}.${data.aws_region.current.name}.cloud."
comment = "Managed by Terraform"

vpc {
vpc_id = "${aws_vpc.main.id}"
vpc_region = "${data.aws_region.current.name}"
Expand Down
1 change: 1 addition & 0 deletions aws_route53_zone_ptr.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "aws_route53_zone" "reverse" {
name = "10.in-addr.arpa"
comment = "Reverse DNS Lookup for ${upper(var.account_name)} - Managed by Terraform"

vpc {
vpc_id = "${aws_vpc.main.id}"
vpc_region = "${data.aws_region.current.name}"
Expand Down

0 comments on commit 021fcf1

Please # to comment.