Skip to content

Instantly share code, notes, and snippets.

@succi0303
Created March 25, 2020 08:45
Show Gist options
  • Save succi0303/e5598a37de2227c3958be30b241fd2da to your computer and use it in GitHub Desktop.
Save succi0303/e5598a37de2227c3958be30b241fd2da to your computer and use it in GitHub Desktop.
Parameters:
KeyName:
Description: Name of an existing EC2 KeyPair
Type: String
Mappings:
RegionMap:
us-east-1:
AMI: ami-76f0061f
us-west-1:
AMI: ami-655a0a20
Resources:
Ec2Instance:
Type: 'AWS::EC2::Instance'
Properties:
KeyName: !Ref KeyName
ImageID: !FindMap
- 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