Skip to content

Instantly share code, notes, and snippets.

@takakabe
Created October 17, 2017 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takakabe/114017b959b6bd46d0442111ff7e8454 to your computer and use it in GitHub Desktop.
Save takakabe/114017b959b6bd46d0442111ff7e8454 to your computer and use it in GitHub Desktop.
CloudFormation
Resources:
Instance:
Type: AWS::EC2::Instance
Properties:
AvailabilityZone: ap-northeast-1a
ImageId: ami-XXXXXXXX
InstanceType: t2.micro
KeyName: キーペア名
NetworkInterfaces:
- AssociatePublicIpAddress: "true"
DeviceIndex: "0"
SubnetId: subnet-XXXXXXXX
GroupSet:
- sg-XXXXXXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment