Created
October 12, 2017 10:40
-
-
Save takakabe/abfebd7c1e9048e60c0ce3cf9eb7228d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
Instance: | |
Type: "AWS::EC2::Instance" | |
Properties: | |
AvailabilityZone: "ap-northeast-1a" | |
ImageId: "ami-4af5022c" | |
InstanceType: "t2.micro" | |
KeyName: "キーペア名" | |
PrivateIpAddress: "192.140.1.1" | |
SecurityGroupIds: | |
- "sg-XXXXXXXX" | |
SubnetId: "subnet-XXXXXXXX" | |
ElasticIP: | |
Type: "AWS::EC2::EIP" | |
Properties: | |
Domain: vpc | |
ElasticIPAssociate: | |
Type: AWS::EC2::EIPAssociation | |
Properties: | |
AllocationId: !GetAtt ElasticIP.AllocationId | |
InstanceId: !Ref Instance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment