Created
November 18, 2021 21:50
-
-
Save NYARAS/b44229134dca6d3d3df8c0ab6b8500fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_nat_gateway" "gw1" { | |
# The allocation ID of the Elastic IP address for the gateway | |
allocation_id = aws_eip.nat1.id | |
# The subnet ID of the subnet in which to place the gateway | |
subnet_id = aws_subnet.public_1.id | |
# A map of tags to assign to the resource | |
tags = { | |
"Name" = "NAT 1" | |
} | |
} | |
resource "aws_nat_gateway" "gw2" { | |
# The allocation ID of the Elastic IP address for the gateway | |
allocation_id = aws_eip.nat2.id | |
# The subnet ID of the subnet in which to place the gateway | |
subnet_id = aws_subnet.public_2.id | |
# A map of tags to assign to the resource | |
tags = { | |
"Name" = "NAT 2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment