Skip to content
By hand

By hand

Without the OpenTofu module, launch the AMI yourself:

  1. Launch the AMI in a public subnet with a public IP. Pick natkit-<version>-arm64 or natkit-<version>-amd64 to match the instance type: in us-east-1 the public one, owner 208689161537.
  2. 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.
  3. 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