Cookbook to set up a non CentOS NAT instance for AWS VPCs.
This is an opiniated cookbook and makes a bunch of assumptions about how your NAT instance and VPC is set up so it may not work for your needs.
It is assumed that:
- There will be one NAT instance per AZ
- Your private subnets have a
network
tag with the valueprivate
- Your route tables for private subnets have a
network
tag with the valueprivate
This way NAT instances can be placed in an AutoScaling group. When they come up a simple Chef run can update the relevant routes.
Only tested on Ubuntu 14.04, but should work on earlier versions. Depends on our aws cookbook.
Runs the aws
, network
and hints
recipes.
Key | Type | Description |
---|---|---|
["nat"]["cidr"] |
String | Source IP range to masquerade. Defaults to 10.10.0.0/16 |
Just include nat
in your node's run_list
:
{
"run_list": [
"recipe[nat]"
]
}