latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

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 Devdeployed by the same pipeline as the others, with nothing of its own. The same template builds it in Sandbox and Prod.

Flow

NAT instance flowA client in a private subnet, a member of the hkb-net-nat-clients security group, sends HTTPS or HTTP to the NAT instance, a t4g.micro in public subnet A. The instance masquerades the traffic with nftables and sends it out through the internet gateway from its Elastic IP. EventBridge Scheduler starts it at 07:00 and stops it at 19:00, weekdays, America/Denver time. Patch Manager scans it daily at 18:00 UTC and installs nothing. It launches from the AMI that the NAT image pipeline publishes in SSM, and it is reached only through Session Manager.AWS CloudEach workload accountSandbox, Dev and ProdVPCPublic subnet APrivate subnetRun, patch, replaceInternetInternet gatewayNAT instancet4g.micro, Elastic IPClientsin hkb-net-nat-clientsScheduler07:00 to 19:00, weekdaysPatch Managerscans daily, 18:00 UTCAMI parameterfrom the NAT imageSession Manager only:no SSH, no key pair.IMDSv2, hop limit 1.Legend1Request or run orderRequest / dataAttached / governsBlueOpens its pageHTTPS, HTTP1masquerade23starts, stopslaunches from
NAT instance flowOpen full sizeClose

The numbers trace one outbound request. The right side shows what starts, patches and replaces the instance.

Configuration

SettingValue
Instancet4g.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
AddressAn Elastic IP, kept while the instance is stopped, so the egress address never changes
AccessNo key pair and no SSH; Session Manager only. IMDSv2 required, hop limit 1
InboundHTTPS and HTTP only from members of the hkb-net-nat-clients security group, never from an IP range
OutboundHTTPS and HTTP to anywhere. Forwarding and masquerade for 10.0.0.0/8 are set in the image, with nftables
ScheduleEventBridge Scheduler starts it at 07:00 and stops it at 19:00, Monday to Friday, America/Denver time, as hkb-net-nat-scheduler
PatchingPatch Manager scans daily at 18:00 UTC and installs nothing; the weekly image rebuild carries the updates
Rolehkb-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
Dev, VPC, NAT image