Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imjoseangel/terraform-aws-privatenat

Create a Private NAT Solution to Avoid IP Exhaustion on AWS
https://github.com/imjoseangel/terraform-aws-privatenat

aws cloud terraform terraform-module vpc

Last synced: 2 days ago
JSON representation

Create a Private NAT Solution to Avoid IP Exhaustion on AWS

Awesome Lists containing this project

README

        

# terraform-aws-privatenat

[![Terraform](https://github.com/imjoseangel/terraform-aws-privatenat/actions/workflows/terraform.yml/badge.svg)](https://github.com/imjoseangel/terraform-aws-privatenat/actions/workflows/terraform.yml)

## Deploy a Terraform Private NAT Subnet

This Terraform module deploys a Private NAT in Amazon Web Services.

### NOTES

* Assumes only two private subnets are available in the VPC.

## Usage in Terraform 1.0

```terraform
module "privatenat" {
source = "github.com/imjoseangel/terraform-aws-privatenat"
vpc_name = ["my-vpc"]
subnet_nat_name = "my-subnet-nat"
subnet_gw_name = "my-subnet-gw"
subnets_spoke_names = ["spoke-eu-west-1a", "spoke-eu-west-1b"]
igw_name = "my-igw"
private_nat_name = "my-private-nat"
nateip_name = "my-nateip"
vpc_isolated_name = "my-vpc-isolated"
subnet_isolated_name = "my-subnet-isolated"
transit_gateway_name = "my-transit-gateway"
}

data "aws_route" "main" {
route_table_id = aws_route_table.main.id
destination_cidr_block = "100.65.0.0/16"
transit_gateway_id = aws_transit_gateway.main.id
}
```

## Authors

Originally created by [imjoseangel](http://github.com/imjoseangel)

## License

[MIT](LICENSE)