Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created March 15, 2019 04:12
Show Gist options
  • Select an option

  • Save 100daysofdevops/ddd6ade7aac9cac02b4ccb8a1f77c7d9 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/ddd6ade7aac9cac02b4ccb8a1f77c7d9 to your computer and use it in GitHub Desktop.
#Adding Elastic IP for NAT gateway
resource "aws_eip" "test_eip" {
vpc = true
}
#Adding NAT Gateway
resource "aws_nat_gateway" "test_nat_gw" {
allocation_id = "${aws_eip.test_eip.id}"
subnet_id = "${aws_subnet.public_subnet.0.id}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment