Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save antklim/7fada3722569bde7e7282f9eadded577 to your computer and use it in GitHub Desktop.
Save antklim/7fada3722569bde7e7282f9eadded577 to your computer and use it in GitHub Desktop.
Description: This template deploys service instances for SimpleAPI
Parameters:
...
KeyName:
Description: EC2 key pair name for bastion host SSH access
Type: AWS::EC2::KeyPair::KeyName
...
Resources:
...
LaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
ImageId: !FindInMap [AWSRegionToAMI, !Ref "AWS::Region", AMI]
InstanceType: t2.micro
KeyName: !Ref KeyName
SecurityGroups:
- !Ref EC2HostSecurityGroup
IamInstanceProfile: !Ref InstanceProfile
Metadata:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment