https://github.com/tedivm/terraform-aws-nat
Terraform module for creating NAT Gateways or Instances and attaching them to a VPC
https://github.com/tedivm/terraform-aws-nat
aws nat terraform
Last synced: about 2 months ago
JSON representation
Terraform module for creating NAT Gateways or Instances and attaching them to a VPC
- Host: GitHub
- URL: https://github.com/tedivm/terraform-aws-nat
- Owner: tedivm
- License: mit
- Created: 2022-03-07T17:57:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T18:05:13.000Z (over 4 years ago)
- Last Synced: 2024-05-01T21:37:44.247Z (about 2 years ago)
- Topics: aws, nat, terraform
- Language: HCL
- Homepage: https://registry.terraform.io/modules/tedivm/nat/aws/latest
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Teraform AWS NAT Module
This module launches a NAT Instance to enable internet traffic in a private subnet.
## Usage
### Example
```terraform
module "nat" {
source = "tedivm/nat/aws"
version = "~> 1.0"
vpc = aws_vpc.main
max_availability_zones = var.max_availability_zones
route_tables = aws_route_table.private
subnets = aws_subnet.public
high_availability = var.high_availability_nat
tags = local.common_tags
}
```
### Outputs
* aws_instances
* aws_security_group
* aws_iam_role
* aws_eip
## High Availability Mode
In High Availability Mode this module runs one NAT in each availability zone. This ensures that issues in one zone do not affect the services in others. High Availability Mode also assigns each NAT Instance an Elastic IP address speed up the transfer of network connections to replacement instances.
## Resources Affected
* EC2 Instance
* EIP (if high availability mode is set)
* IAM Role (through the ec2_iam_profile module)
* Routes
* Security Group