Skip to main content

A NAT Gateway instance construct built on the fck-nat AMI.

Project description

CDK fck-nat

A CDK construct for deploying NAT Instances using fck-nat. The (f)easible (c)ost (k)onfigurable NAT!

  • Overpaying for AWS Managed NAT Gateways? fck-nat.
  • Want to use NAT instances and stay up-to-date with the latest security patches? fck-nat.
  • Want to reuse your Bastion hosts as a NAT? fck-nat.

fck-nat offers a ready-to-use ARM and x86 based AMIs built on Amazon Linux 2 which can support up to 5Gbps NAT traffic on a t4g.nano instance. How does that compare to a Managed NAT Gateway?

Hourly rates:

  • Managed NAT Gateway hourly: $0.045
  • t4g.nano hourly: $0.0042

Per GB rates:

  • Managed NAT Gateway per GB: $0.045
  • fck-nat per GB: $0.00

Sitting idle, fck-nat costs 10% of a Managed NAT Gateway. In practice, the savings are even greater.

"But what about AWS' NAT Instance AMI?"

The official AWS supported NAT Instance AMI hasn't been updates since 2018, is still running Amazon Linux 1 which is now EOL, and has no ARM support, meaning it can't be deployed on EC2's most cost effective instance types. fck-nat.

"When would I want to use a Managed NAT Gateway instead of fck-nat?"

AWS limits outgoing internet bandwidth on EC2 instances to 5Gbps. This means that the highest bandwidth that fck-nat can support is 5Gbps. This is enough to cover a very broad set of use cases, but if you need additional bandwidth, you should use Managed NAT Gateway. If AWS were to lift the limit on internet egress bandwidth from EC2, you could cost-effectively operate fck-nat at speeds up to 25Gbps, but you wouldn't need Managed NAT Gateway then would you? fck-nat.

Read more about EC2 bandwidth limits here: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-fck-nat-1.0.34.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_fck_nat-1.0.34-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file cdk-fck-nat-1.0.34.tar.gz.

File metadata

  • Download URL: cdk-fck-nat-1.0.34.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for cdk-fck-nat-1.0.34.tar.gz
Algorithm Hash digest
SHA256 365ce613b5252a3c110a6db6ed2bdf3ac1bcdfafc307bffc6cde6a4cc3992842
MD5 3bcce329c4baf907739158fdb361d37b
BLAKE2b-256 219bb336342255e782a87de08e76ef3e58532fcdc8b86e558ced77de04e0ad8a

See more details on using hashes here.

File details

Details for the file cdk_fck_nat-1.0.34-py3-none-any.whl.

File metadata

  • Download URL: cdk_fck_nat-1.0.34-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for cdk_fck_nat-1.0.34-py3-none-any.whl
Algorithm Hash digest
SHA256 01c5f1cb1cda0ab7da8436b4d19dc2e98ac9d31641429cb9a09c0add086b7475
MD5 6e1dbc1553789c39da10ce9276db5a87
BLAKE2b-256 757d8c121de35c7e695f05fd9b74cde967742a44fbf6aed14e383a75a67f7a71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page