diff options
author | Spike <avlampson+git@gmail.com> | 2019-04-07 22:03:31 +0100 |
---|---|---|
committer | Spike <avlampson+git@gmail.com> | 2019-04-07 22:03:31 +0100 |
commit | bb81085619769aca861ab5d5bbff86f71c9435d2 (patch) | |
tree | 80b45de34d9f0647c10e6d6fae5b408c21c190c5 /nat.tf | |
download | fundapp_demo-master.zip fundapp_demo-master.tar.gz fundapp_demo-master.tar.bz2 |
Diffstat (limited to 'nat.tf')
-rw-r--r-- | nat.tf | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +# Nat gateways +resource "aws_nat_gateway" "fundapp_demo_nat_gateway_az1" { + allocation_id = "${aws_eip.fundapp_demo_eip_az1.id}" + subnet_id = "${aws_subnet.public_1.id}" + depends_on = ["aws_internet_gateway.fundapp_demo_aws_igw"] +} + +resource "aws_nat_gateway" "fundapp_demo_nat_gateway_az2" { + allocation_id = "${aws_eip.fundapp_demo_eip_az2.id}" + subnet_id = "${aws_subnet.public_2.id}" + depends_on = ["aws_internet_gateway.fundapp_demo_aws_igw"] +} + +resource "aws_nat_gateway" "fundapp_demo_nat_gateway_az3" { + allocation_id = "${aws_eip.fundapp_demo_eip_az3.id}" + subnet_id = "${aws_subnet.public_3.id}" + depends_on = ["aws_internet_gateway.fundapp_demo_aws_igw"] +} |