# NAT instance on AWS

DevFeed: [NAT instance on AWS](<https://devfeed.tech/articles/nat-instance-on-aws-27293.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201802/aws-nat-instance/>)

Published: 2018-02-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [VPC](<https://devfeed.tech/topics/vpc.md>), [AWS CloudFormation](<https://devfeed.tech/topics/aws-cloudformation.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [autoscaling](<https://devfeed.tech/topics/autoscaling.md>)

Tags: [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloudformation](<https://devfeed.tech/tags/cloudformation.md>), [ec2](<https://devfeed.tech/tags/ec2.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [vpc](<https://devfeed.tech/tags/vpc.md>)

## AI overview

A practical guide to replacing AWS NAT gateways with a NAT instance configured through CloudFormation. The author describes creating a VPC with public and private subnets, configuring an EC2 instance as the NAT gateway, and seeking lower costs at the expense of reliability.

## Source excerpt

At work and in my private time I'm trying to get myself familiar with AWS cloud. Almost all of this is new for me. I know how to setup few things using AWS web console but infrastructure as a code was calling to me and I wanted to give it a spin. My first task was to create VPC with two pairs of subnets for private stuff and here is why I did it twice. Read more