Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 865 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 865 Bytes

VPC Templates for AWS CloudFormation

Find the documentation here: https://templates.cloudonaut.io/en/stable/vpc/

Developer notes

RegionMap

To update the region map execute the following lines in your terminal:

AMI

for region in $(aws ec2 describe-regions --query "Regions[].RegionName" --output text); do ami=$(aws --region $region ec2 describe-images --filters "Name=name,Values=amzn2-ami-hvm-2.0.20220316.0-x86_64-gp2" --query "Images[0].ImageId" --output "text"); printf "'$region':\n  AMI: '$ami'\n"; done

NATAMI

for region in $(aws ec2 describe-regions --query "Regions[].RegionName" --output text); do ami=$(aws --region $region ec2 describe-images --filters "Name=name,Values=amzn-ami-vpc-nat-2018.03.0.20211201.0-x86_64-ebs" --query "Images[0].ImageId" --output "text"); printf "'$region':\n  NATAMI: '$ami'\n"; done