NAT instance
An EC2 instance that gives the private subnets outbound HTTPS and HTTP, in place of a NAT gateway, at a fraction of its cost. It runs only on weekday working hours.
In Sandboxdeployed by the same pipeline as the others, with nothing of its own. The same template builds it in Dev and Prod.
Flow
The numbers trace one outbound request. The right side shows what starts, patches and replaces the instance.
Configuration
| Setting | Value |
|---|---|
| Instance | t4g.micro (Graviton) in public subnet A, from the NAT image; source/destination check off. A larger type than nano: 512 MiB locked up on the first patch scan |
| Address | An Elastic IP, kept while the instance is stopped, so the egress address never changes |
| Access | No key pair and no SSH; Session Manager only. IMDSv2 required, hop limit 1 |
| Inbound | HTTPS and HTTP only from members of the hkb-net-nat-clients security group, never from an IP range |
| Outbound | HTTPS and HTTP to anywhere. Forwarding and masquerade for 10.0.0.0/8 are set in the image, with nftables |
| Schedule | EventBridge Scheduler starts it at 07:00 and stops it at 19:00, Monday to Friday, America/Denver time, as hkb-net-nat-scheduler |
| Patching | Patch Manager scans daily at 18:00 UTC and installs nothing; the weekly image rebuild carries the updates |
| Role | hkb-net-nat: Session Manager and Patch Manager only, under the workload permissions boundary |
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-network.yaml- Linked from
- ISO 27001 Statement of Applicability, Sandbox, VPC, NAT image