# 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"] }