NAT image
The NAT instance's AMI, built by EC2 Image Builder in each account and rebuilt every week, so the instance takes its updates by replacement rather than patching in place.
In Devdeployed by the same pipeline as the others, with nothing of its own. The same template builds it in Sandbox and Prod.
Flow
The numbers trace one weekly build, from the schedule to the instance that launches from it.
Configuration
| Setting | Value |
|---|---|
| Base image | Amazon Linux 2023, arm64, the latest Amazon-managed version |
| Components | Package update; the Amazon-managed DISA STIG component at Medium; HKB's NAT settings (IP forwarding on, ICMP redirects off, masquerade through nftables), with a test that both are in place |
| Volume | 10 GiB gp3, encrypted |
| Build | t4g.small in public subnet B, no key pair, IMDSv2 only, terminated on failure, as hkb-net-image-build. Image tests on |
| Schedule | Weekly, Sun 10:00 UTC, outside the NAT's working hours, whether or not a component changed. The first image is built with the stack |
| Output | Each build writes its AMI ID to /imagebuilder/hkb/nat_ami_id in SSM; the NAT stack launches from it at its next deploy, and the Elastic IP moves to the new instance |
| Retention | A lifecycle policy keeps the newest 2 images and their snapshots, as hkb-net-image-lifecycle |
Sources
Page information
- Owner
- Platform Engineering
- Status
- current Current: generated from the templates and records in the repository at this build.
- Generated from
network/hkb-image.yaml- Linked from
- Dev, VPC, NAT instance