You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module doesn't use a custom AMI, rather it executes the NAT configuration on launch of the instance using the default Amazon Linux 2023 AMI . while the execution doesn't take long, it is preferable to use a custom AMI.
Inputs:
ami_id: The ID of the AMI to use for the NAT instance. Default is the Amazon Linux 2023 AMI. (optional)
instance_type: The instance type to use for the NAT instance. Default is t4g.micro. (optional)
use_ssh: Whether to allow SSH access to the NAT instance. Default is false. (optional)
key_name: The key pair to use for the NAT instance. (optional)
use_script: Whether to use the user data script to configure the NAT instance. Default is true. (optional)
vpc_id: The ID of the VPC to create the NAT instance in. (required)
map_subnet_rtbs: A list of pairs where the first element is a public subnet ID and the second element is a list of private route table IDs. (required)
The module doesn't have a built in cross az optimization, rather it is up to the user to provide the necessary inputs or modify the network configuration to achieve optimal solution.
if cross az data transfer is concern , you may want to deploy multiple NAT instances in different AZs.
make sure to create a public subnet in each AZ and provide the private route tables ids associated with subnets on that same AZ.
also make sure not to specify a route table multiple times to avoid confilcts.