Skip to content

Instantly share code, notes, and snippets.

@joebernard
joebernard / gist:100ba280fdeba61d4a06990ab860ea78
Created January 5, 2022 00:20
Cheap and easy NAT instance
# Inspired from here: https://www.kabisa.nl/tech/cost-saving-with-nat-instances/
NatInstance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t4g.micro
ImageId: ami-0a1eddae0b7f0a79f # Amazon Linux 2 AMI (HVM), SSD Volume Type, 64-bit ARM
SourceDestCheck: false
NetworkInterfaces:
- AssociatePublicIpAddress: true
DeviceIndex: "0"