This module creates following resources.
aws_nat_gateway
aws_eip
(optional)
Name | Version |
---|---|
terraform | >= 1.6 |
aws | >= 5.10 |
Name | Version |
---|---|
aws | 5.22.0 |
Name | Source | Version |
---|---|---|
resource_group | tedilabs/misc/aws//modules/resource-group | ~> 0.10.0 |
Name | Type |
---|---|
aws_nat_gateway.this | resource |
aws_subnet.this | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | (Required) Desired name for the NAT Gateway resources. | string |
n/a | yes |
subnet | (Required) The Subnet ID of the subnet in which to place the NAT Gateway. | string |
n/a | yes |
is_private | (Optional) Whether to create the NAT gateway as private or public connectivity type. Defaults to false (public). |
bool |
false |
no |
module_tags_enabled | (Optional) Whether to create AWS Resource Tags for the module informations. | bool |
true |
no |
primary_ip_assignment | (Optional) A configuration to assign primary ip address with the NAT Gateway. primary_ip_assignment as defined below.(Optional) elastic_ip - The allocation ID of Elastic IP address to associate with the NAT Gateway.(Optional) private_ip - The private IP address to associate with the NAT Gateway. If you dont't provide an address, a private IPv4 address will be automatically assigned. |
object({ |
{} |
no |
resource_group_description | (Optional) The description of Resource Group. | string |
"Managed by Terraform." |
no |
resource_group_enabled | (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. | bool |
true |
no |
resource_group_name | (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws . |
string |
"" |
no |
secondary_ip_assignments | (Optional) A configuration to assign secondary ip addresses with the NAT Gateway. Each block of secondary_ip_assignments as defined below.(Optional) elastic_ip - The allocation ID of Elastic IP address to associate with the NAT Gateway.(Optional) private_ip - The private IP address to associate with the NAT Gateway. If you dont't provide an address, a private IPv4 address will be automatically assigned. |
list(object({ |
[] |
no |
secondary_ip_count | (Optional) The number of secondary private IPv4 addresses to assign to the NAT Gateway. Only used with private NAT Gateway. | number |
null |
no |
tags | (Optional) A map of tags to add to all resources. | map(string) |
{} |
no |
timeouts | (Optional) How long to wait for the NAT Gateway to be created/updated/deleted. | object({ |
{} |
no |
Name | Description |
---|---|
availability_zone | The availability zone of the NAT Gateway.id - The ID of the availability zone.name - The name of the availability zone. |
elastic_ip | The Allocation ID of the Elastic IP address for the gateway. |
id | The ID of the NAT Gateway. |
is_private | Whether the NAT Gateway supports public or private connectivity. |
name | The name of the NAT Gateway. |
netework_interface | The ENI ID of the network interface created by the NAT gateway. |
primary_private_ip | The private IP address of the NAT Gateway. |
primary_public_ip | The public IP address of the NAT Gateway. |
secondary_private_ips | The secondary private IP addresses of the NAT Gateway. |
subnet | The subnet which the NAT Gateway belongs to.id - The ID of the subnet.arn - The ARN of the subnet. |
vpc_id | The VPC ID of the NAT Gateway. |