Skip to content

Instantly share code, notes, and snippets.

@komiya-atsushi
Created February 14, 2014 15:00
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 komiya-atsushi/9002499 to your computer and use it in GitHub Desktop.
Save komiya-atsushi/9002499 to your computer and use it in GitHub Desktop.
https://gist.github.com/komiya-atsushi/9002471 で生成された CloudFormation テンプレートの JSON ファイルです。
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"Vpc1": {
"Type": "AWS::EC2::VPC",
"Properties": {
"CidrBlock": "10.0.0.0/16"
}
},
"Subnet1": {
"Type": "AWS::EC2::Subnet",
"Properties": {
"CidrBlock": "10.0.1.0/24",
"VpcId": {
"Ref": "Vpc1"
},
"AvailabilityZone": "ap-northeast-1a"
}
},
"Subnet2": {
"Type": "AWS::EC2::Subnet",
"Properties": {
"CidrBlock": "10.0.2.0/24",
"VpcId": {
"Ref": "Vpc1"
},
"AvailabilityZone": "ap-northeast-1c"
}
},
"Subnet3": {
"Type": "AWS::EC2::Subnet",
"Properties": {
"CidrBlock": "10.0.0.0/24",
"VpcId": {
"Ref": "Vpc1"
},
"AvailabilityZone": "ap-northeast-1a"
}
},
"RouteTable1": {
"Type": "AWS::EC2::RouteTable",
"Properties": {
"VpcId": {
"Ref": "Vpc1"
}
}
},
"Igw1": {
"Type": "AWS::EC2::InternetGateway"
},
"Igw1Attachment": {
"Type": "AWS::EC2::VPCGatewayAttachment",
"Properties": {
"InternetGatewayId": {
"Ref": "Igw1"
},
"VpcId": {
"Ref": "Vpc1"
}
}
},
"RouteTable1Association0": {
"Type": "AWS::EC2::SubnetRouteTableAssociation",
"Properties": {
"RouteTableId": {
"Ref": "RouteTable1"
},
"SubnetId": {
"Ref": "Subnet3"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment