summaryrefslogtreecommitdiffstats
path: root/nat.tf
diff options
context:
space:
mode:
Diffstat (limited to 'nat.tf')
-rw-r--r--nat.tf18
1 files changed, 18 insertions, 0 deletions
diff --git a/nat.tf b/nat.tf
new file mode 100644
index 0000000..c8bb0e5
--- /dev/null
+++ b/nat.tf
@@ -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"]
+}