Skip to content

Instantly share code, notes, and snippets.

@stewmi
Created February 12, 2021 13:57
Show Gist options
  • Save stewmi/ad99c7d498d0a7de2cbc8f96d5440a26 to your computer and use it in GitHub Desktop.
Save stewmi/ad99c7d498d0a7de2cbc8f96d5440a26 to your computer and use it in GitHub Desktop.
Base CFN Template
AWSTemplateFormatVersion: "2010-09-09"
Description: A Template
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair to enable SSH access to the instance
Type: String
Mappings:
RegionMap:
us-east-1:
AMI: ami-76f0061f
us-west-1:
AMI: ami-655a0a20
eu-west-1:
AMI: ami-7fd4e10b
ap-southeast-1:
AMI: ami-72621c20
ap-northeast-1:
AMI: ami-8e08a38f
Resources:
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
KeyName: !Ref KeyName
ImageId: !FindInMap
- RegionMap
- !Ref 'AWS::Region'
- AMI
UserData: !Base64 '80'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment