summaryrefslogtreecommitdiffstats
path: root/nat.tf
diff options
context:
space:
mode:
authorSpike <avlampson+git@gmail.com>2019-04-07 22:03:31 +0100
committerSpike <avlampson+git@gmail.com>2019-04-07 22:03:31 +0100
commitbb81085619769aca861ab5d5bbff86f71c9435d2 (patch)
tree80b45de34d9f0647c10e6d6fae5b408c21c190c5 /nat.tf
downloadfundapp_demo-master.zip
fundapp_demo-master.tar.gz
fundapp_demo-master.tar.bz2
Autoscaling Group, and associated controls and configsHEADmaster
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"]
+}