AWS Doc about VPC NAT Instance
module "nat_instance" {
source = "hazelops/ec2-nat/aws"
version = "~> 2.0"
enabled = var.nat_gateway_enabled ? false : true
env = var.env
vpc_id = module.vpc.vpc_id
allowed_cidr_blocks = [module.vpc.vpc_cidr_block]
public_subnets = module.vpc.public_subnets
private_route_table_id = module.vpc.private_route_table_ids[0]
ec2_key_pair_name = var.ec2_key_pair_name
}
Name | Version |
---|---|
terraform | >= 0.13 |
Name | Version |
---|---|
aws | n/a |
No modules.
Name | Type |
---|---|
aws_eip.this | resource |
aws_eip_association.nat_instance | resource |
aws_instance.this | resource |
aws_route.this | resource |
aws_security_group.this | resource |
aws_ami.this | data source |
aws_availability_zones.all | data source |
aws_caller_identity.current | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
allowed_cidr_blocks | List of network subnets that are allowed | list(string) |
[ |
no |
architecture | NAT instance architecture | list(string) |
[ |
no |
ec2_key_pair_name | n/a | any |
n/a | yes |
enabled | Gives ability to enable or disable Creation of NAT EC2 | bool |
false |
no |
env | n/a | any |
n/a | yes |
instance_type | NAT instance type | string |
"t4g.nano" |
no |
private_route_table_id | n/a | any |
n/a | yes |
public_subnets | n/a | any |
n/a | yes |
vpc_id | n/a | any |
n/a | yes |
Name | Description |
---|---|
instance_id | n/a |
private_ip | n/a |
public_ip | n/a |
security_group | n/a |