Last active
December 28, 2016 20:26
-
-
Save mdfGit/48721c7cc0a9f18f27e7 to your computer and use it in GitHub Desktop.
AWS CloudFormation Mappings to Amazon NAT AMIs by Region/Instance type... Not sure why this doesn't already exist, but there were no example templates that mapped regions and instance types to the Amazon configured NAT ami. That's what this Gist is for, it provides the mappings for amzn-ami-vpc-nat amis in each region. These instances are config…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS CloudFormation Template (SNIPPET) that maps Amazon NAT amis (amzn-ami-vpc-nat) for each region and architecture. These instances should have the NAT configured by /usr/local/sbin/configure-pat.sh, which enables IP forwarding and adds masquerading to iptables. IMPORTANT, when defining your EC2 instance as a NAT, make sure the 'SourceDestCheck': property is set to false. Otherwise, traffic through the NAT may not work. This setting allows the NAT to forward network traffic - it is not the recipient of the traffic.", | |
"Mappings": { | |
"AWSInstanceType2Arch": { | |
"t1.micro": { | |
"Arch": "PV64" | |
}, | |
"t2.micro": { | |
"Arch": "HVM64" | |
}, | |
"t2.small": { | |
"Arch": "HVM64" | |
}, | |
"t2.medium": { | |
"Arch": "HVM64" | |
}, | |
"m1.small": { | |
"Arch": "PV64" | |
}, | |
"m1.medium": { | |
"Arch": "PV64" | |
}, | |
"m1.large": { | |
"Arch": "PV64" | |
}, | |
"m1.xlarge": { | |
"Arch": "PV64" | |
}, | |
"m2.xlarge": { | |
"Arch": "PV64" | |
}, | |
"m2.2xlarge": { | |
"Arch": "PV64" | |
}, | |
"m2.4xlarge": { | |
"Arch": "PV64" | |
}, | |
"m3.medium": { | |
"Arch": "HVM64" | |
}, | |
"m3.large": { | |
"Arch": "HVM64" | |
}, | |
"m3.xlarge": { | |
"Arch": "HVM64" | |
}, | |
"m3.2xlarge": { | |
"Arch": "HVM64" | |
}, | |
"c1.medium": { | |
"Arch": "PV64" | |
}, | |
"c1.xlarge": { | |
"Arch": "PV64" | |
}, | |
"c3.large": { | |
"Arch": "HVM64" | |
}, | |
"c3.xlarge": { | |
"Arch": "HVM64" | |
}, | |
"c3.2xlarge": { | |
"Arch": "HVM64" | |
}, | |
"c3.4xlarge": { | |
"Arch": "HVM64" | |
}, | |
"c3.8xlarge": { | |
"Arch": "HVM64" | |
}, | |
"g2.2xlarge": { | |
"Arch": "HVMG2" | |
}, | |
"r3.large": { | |
"Arch": "HVM64" | |
}, | |
"r3.xlarge": { | |
"Arch": "HVM64" | |
}, | |
"r3.2xlarge": { | |
"Arch": "HVM64" | |
}, | |
"r3.4xlarge": { | |
"Arch": "HVM64" | |
}, | |
"r3.8xlarge": { | |
"Arch": "HVM64" | |
}, | |
"i2.xlarge": { | |
"Arch": "HVM64" | |
}, | |
"i2.2xlarge": { | |
"Arch": "HVM64" | |
}, | |
"i2.4xlarge": { | |
"Arch": "HVM64" | |
}, | |
"i2.8xlarge": { | |
"Arch": "HVM64" | |
}, | |
"hi1.4xlarge": { | |
"Arch": "HVM64" | |
}, | |
"hs1.8xlarge": { | |
"Arch": "HVM64" | |
}, | |
"cr1.8xlarge": { | |
"Arch": "HVM64" | |
}, | |
"cc2.8xlarge": { | |
"Arch": "HVM64" | |
} | |
}, | |
"AWSRegionArch2NATAMI": { | |
"us-east-1": { | |
"PV64": "ami-224dc94a", | |
"HVM64": "ami-4c9e4b24", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"us-west-2": { | |
"PV64": "ami-030f4133", | |
"HVM64": "ami-290f4119", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"us-west-1": { | |
"PV64": "ami-838396c6", | |
"HVM64": "ami-2b2b296e", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"eu-west-1": { | |
"PV64": "ami-30913f47", | |
"HVM64": "ami-3760b040", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"eu-central-1": { | |
"PV64": "ami-ac380eb1", | |
"HVM64": "ami-204c7a3d", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"ap-southeast-1": { | |
"PV64": "ami-70a38222", | |
"HVM64": "ami-b082dae2", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"ap-northeast-1": { | |
"PV64": "ami-11d6e610", | |
"HVM64": "ami-55c29e54", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"ap-southeast-2": { | |
"PV64": "ami-39d3be03", | |
"HVM64": "ami-996402a3", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"sa-east-1": { | |
"PV64": "ami-7660c56b", | |
"HVM64": "ami-b972dba4", | |
"HVMG2": "NOT_SUPPORTED" | |
}, | |
"cn-north-1": { | |
"PV64": "NOT_SUPPORTED", | |
"HVM64": "NOT_SUPPORTED", | |
"HVMG2": "NOT_SUPPORTED" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Values=*ami-vpc-nat*s
is now incorrect -- some instances end with-gp2
. Just useValues=*ami-vpc-nat*
.