Created
April 18, 2014 13:01
-
-
Save mmitou/11043087 to your computer and use it in GitHub Desktop.
sshで繋げられなかった
This file contains hidden or 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
| { "AWSTemplateFormatVersion" : "2010-09-09", | |
| "Description" : "test", | |
| "Mappings" : { | |
| "RegionMap" : { | |
| "us-east-1" : { "AMI" : "ami-2f726546" }, | |
| "us-west-1" : { "AMI" : "ami-84f1cfc1" }, | |
| "us-west-2" : { "AMI" : "ami-b8f69f88" }, | |
| "eu-west-1" : { "AMI" : "ami-a921dfde" }, | |
| "ap-southeast-1" : { "AMI" : "ami-787c2c2a" }, | |
| "ap-southeast-2" : { "AMI" : "ami-0bc85031" }, | |
| "ap-northeast-1" : { "AMI" : "ami-a1bec3a0" }, | |
| "sa-east-1" : { "AMI" : "ami-89de7c94" } | |
| } | |
| }, | |
| "Resources" : { | |
| "testVpc" : { | |
| "Type" : "AWS::EC2::VPC", | |
| "Properties" : { | |
| "CidrBlock" : "192.168.0.0/24", | |
| "EnableDnsSupport" : "true", | |
| "EnableDnsHostnames" : "false", | |
| "InstanceTenancy" : "default", | |
| "Tags" : [ { "Key": "Name", "Value" : "test" }, | |
| { "Key": "Description", "Value" : "this is test." } ] | |
| } | |
| }, | |
| "testVpcSecurityGroup" : { | |
| "Type" : "AWS::EC2::SecurityGroup", | |
| "Properties" : { | |
| "GroupDescription" : "enable ssh access via port 22", | |
| "SecurityGroupEgress" : [ { "IpProtocol" : "tcp", "FromPort" : "0", "ToPort" : "65535", "CidrIp" : "0.0.0.0/0" } ], | |
| "SecurityGroupIngress" : [ { "IpProtocol" : "tcp", "FromPort" : "22", "ToPort" : "22", "CidrIp" : "0.0.0.0/0" } ], | |
| "VpcId" : { "Ref" : "testVpc" }, | |
| "Tags" : [ { "Key": "Name", "Value" : "test" } ] | |
| } | |
| }, | |
| "testInternetGateway" : { | |
| "Type" : "AWS::EC2::InternetGateway", | |
| "Properties" : { | |
| "Tags" : [ { "Key" : "Name", "Value" : "test" } ] | |
| } | |
| }, | |
| "attachGateway" : { | |
| "Type" : "AWS::EC2::VPCGatewayAttachment", | |
| "Properties" : { | |
| "VpcId" : { "Ref" : "testVpc" }, | |
| "InternetGatewayId" : { "Ref" : "testInternetGateway" } | |
| } | |
| }, | |
| "testRouteTable" : { | |
| "Type" : "AWS::EC2::RouteTable", | |
| "Properties" : { | |
| "VpcId" : { "Ref" : "testVpc" }, | |
| "Tags" : [ { "Key": "Name", "Value" : "test" } ] | |
| } | |
| }, | |
| "testRoute" : { | |
| "Type" : "AWS::EC2::Route", | |
| "Properties" : { | |
| "DestinationCidrBlock" : "0.0.0.0/0", | |
| "GatewayId" : { "Ref" : "testInternetGateway" }, | |
| "RouteTableId" : { "Ref" : "testRouteTable" } | |
| } | |
| }, | |
| "testSubnet0" : { | |
| "Type" : "AWS::EC2::Subnet", | |
| "Properties" : { | |
| "AvailabilityZone" : { "Fn::Select" : [ "0" , { "Fn::GetAZs" : { "Ref" : "AWS::Region" }}]}, | |
| "CidrBlock" : "192.168.0.0/24", | |
| "Tags" : [ { "Key": "Name", "Value" : "test" } ], | |
| "VpcId" : { "Ref" : "testVpc" } | |
| } | |
| }, | |
| "testNetworkInterface" : { | |
| "Type" : "AWS::EC2::NetworkInterface", | |
| "Properties" : { | |
| "Description" : "test eni", | |
| "GroupSet" : [ { "Ref" : "testVpcSecurityGroup" } ], | |
| "PrivateIpAddress" : "192.168.0.10", | |
| "SourceDestCheck" : "false", | |
| "SubnetId" : { "Ref" : "testSubnet0" }, | |
| "Tags" : [ { "Key" : "Name", "Value" : "test" } ] | |
| } | |
| }, | |
| "testElasticIP" : { | |
| "Type" : "AWS::EC2::EIP", | |
| "Properties" : { | |
| "Domain" : "vpc" | |
| } | |
| }, | |
| "testEipAssociation" : { | |
| "Type" : "AWS::EC2::EIPAssociation", | |
| "Properties" : { | |
| "AllocationId" : { "Fn::GetAtt" : [ "testElasticIP", "AllocationId" ]}, | |
| "NetworkInterfaceId" : { "Ref" : "testNetworkInterface" } | |
| } | |
| }, | |
| "testServer0" : { | |
| "Type" : "AWS::EC2::Instance", | |
| "Properties" : { | |
| "AvailabilityZone" : { "Fn::Select" : [ "0" , { "Fn::GetAZs" : { "Ref" : "AWS::Region" }}]}, | |
| "ImageId" : { "Fn::FindInMap" : ["RegionMap", { "Ref" : "AWS::Region" }, "AMI" ]}, | |
| "InstanceType" : "t1.micro", | |
| "KeyName" : { "Fn::Join" : [ "", [ "test", "-", { "Ref" : "AWS::Region" }]]}, | |
| "SubnetId" : { "Ref" : "testSubnet0" }, | |
| "Monitoring" : "true" | |
| } | |
| }, | |
| "NetworkInterfaceAttachment" : { | |
| "Type" : "AWS::EC2::NetworkInterfaceAttachment", | |
| "Properties" : { | |
| "InstanceId" : {"Ref" : "testServer0"}, | |
| "NetworkInterfaceId" : {"Ref" : "testNetworkInterface"}, | |
| "DeviceIndex" : "1" | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment