By hand
Without the OpenTofu module, launch the AMI yourself:
- Launch the AMI in a public subnet with a public IP. Pick
natkit-<version>-arm64ornatkit-<version>-amd64to match the instance type: in us-east-1 the public one, owner208689161537. - Turn off source/dest check on its ENI. With
eni_id, natkit turns off the primary ENI’s; create the static ENI with source/dest check off, since natkit doesn’t change it. - Point the private subnets’ default route at it, as you would for fck-nat.
The AMI requires IMDSv2. Then check that it’s up.
Without user-data, natkit is a plain NAT out of the primary ENI. The user-data keys add the rest, and the ones that call AWS need an instance role.
For high availability, run it in an Auto Scaling group of one with a static ENI and an EIP. High availability has the layout, and the lifecycle hook to add to a group of your own.
What it costs: see Costs.
Last updated on