Last active
February 1, 2016 12:09
-
-
Save ara-ta3/27b47ec058710b419a28 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
21:07:54 UTC+0900 | UPDATE_COMPLETE | AWS::CloudFormation::Stack | test-stack | ||
---|---|---|---|---|---|
21:07:53 UTC+0900 | DELETE_COMPLETE | AWS::EC2::VPC | VPC | ||
21:07:37 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::VPC | VPC | ||
21:07:35 UTC+0900 | DELETE_COMPLETE | AWS::EC2::Subnet | PublicSubnetA | ||
21:07:20 UTC+0900 | DELETE_COMPLETE | AWS::EC2::RouteTable | PublicRouteTable | ||
21:07:19 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | ||
21:07:19 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | ||
21:07:17 UTC+0900 | DELETE_COMPLETE | AWS::EC2::Route | PublicRoute | ||
21:07:17 UTC+0900 | DELETE_COMPLETE | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | ||
21:07:03 UTC+0900 | DELETE_COMPLETE | AWS::EC2::SecurityGroup | WebGroup | ||
21:07:02 UTC+0900 | DELETE_COMPLETE | AWS::EC2::SecurityGroup | SSHGroup | ||
21:07:01 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | ||
21:07:01 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | ||
21:07:01 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::Route | PublicRoute | ||
21:07:01 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | ||
21:06:58 UTC+0900 | UPDATE_COMPLETE_CLEANUP_IN_PROGRESS | AWS::CloudFormation::Stack | test-stack | ||
21:06:56 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::Route | PublicRoute | ||
21:06:42 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | ||
21:06:40 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Route | PublicRoute | Resource creation Initiated | |
21:06:39 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Route | PublicRoute | Requested update requires the creation of a new physical resource; hence creating one. | |
21:06:31 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
21:06:27 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | Resource creation Initiated | |
21:06:26 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | Requested update requires the creation of a new physical resource; hence creating one. | |
21:06:20 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::SecurityGroup | SSHGroup | ||
21:06:20 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::SecurityGroup | WebGroup | ||
21:06:20 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::Subnet | PublicSubnetA | ||
21:06:18 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | Resource creation Initiated | |
21:06:18 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | Resource creation Initiated | |
21:06:05 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::RouteTable | PublicRouteTable | ||
21:06:03 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | Resource creation Initiated | |
21:06:03 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | Resource creation Initiated | |
21:06:03 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | Requested update requires the creation of a new physical resource; hence creating one. | |
21:06:03 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | Requested update requires the creation of a new physical resource; hence creating one. | |
21:06:02 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | Requested update requires the creation of a new physical resource; hence creating one. | |
21:06:02 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | Requested update requires the creation of a new physical resource; hence creating one. | |
21:06:00 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
21:05:55 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::VPC | VPC | ||
21:05:38 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPC | VPC | Resource creation Initiated | |
21:05:37 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPC | VPC | Requested update requires the creation of a new physical resource; hence creating one. | |
21:05:25 UTC+0900 | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | test-stack | User Initiated | |
20:42:53 UTC+0900 | UPDATE_ROLLBACK_COMPLETE | AWS::CloudFormation::Stack | test-stack | ||
20:42:52 UTC+0900 | DELETE_COMPLETE | AWS::EC2::VPC | VPC | ||
20:42:36 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::VPC | VPC | ||
20:42:34 UTC+0900 | DELETE_COMPLETE | AWS::EC2::Subnet | PublicSubnetA | ||
20:42:21 UTC+0900 | DELETE_COMPLETE | AWS::EC2::RouteTable | PublicRouteTable | ||
20:42:20 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | ||
20:42:20 UTC+0900 | DELETE_COMPLETE | AWS::EC2::SecurityGroup | WebGroup | ||
20:42:19 UTC+0900 | DELETE_COMPLETE | AWS::EC2::SecurityGroup | SSHGroup | ||
20:42:18 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | ||
20:42:18 UTC+0900 | DELETE_COMPLETE | AWS::EC2::Route | PublicRoute | ||
20:42:18 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | ||
20:42:18 UTC+0900 | DELETE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | ||
20:42:15 UTC+0900 | UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS | AWS::CloudFormation::Stack | test-stack | ||
20:42:14 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
20:41:45 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::Route | PublicRoute | ||
20:41:42 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::Subnet | PublicSubnetA | ||
20:41:42 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::RouteTable | PublicRouteTable | ||
20:41:42 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::SecurityGroup | SSHGroup | ||
20:41:42 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::SecurityGroup | WebGroup | ||
20:41:42 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
20:41:40 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::VPC | VPC | ||
20:41:25 UTC+0900 | UPDATE_ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | test-stack | The following resource(s) failed to update: [WebGroup, PublicRoute, AttachGateway, SSHGroup, PublicSubnetA]. | |
20:41:24 UTC+0900 | UPDATE_FAILED | AWS::EC2::SecurityGroup | WebGroup | Resource creation cancelled | |
20:41:24 UTC+0900 | UPDATE_FAILED | AWS::EC2::SecurityGroup | SSHGroup | Resource creation cancelled | |
20:41:18 UTC+0900 | UPDATE_FAILED | AWS::EC2::VPCGatewayAttachment | AttachGateway | Resource update cancelled | |
20:41:18 UTC+0900 | UPDATE_FAILED | AWS::EC2::Subnet | PublicSubnetA | Resource creation cancelled | |
20:41:17 UTC+0900 | UPDATE_FAILED | AWS::EC2::Route | PublicRoute | route table rtb-e3fdb186 and network gateway igw-80842de5 belong to different networks | |
20:41:16 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Route | PublicRoute | Requested update requires the creation of a new physical resource; hence creating one. | |
20:41:10 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::RouteTable | PublicRouteTable | ||
20:41:08 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | Resource creation Initiated | |
20:41:08 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | Resource creation Initiated | |
20:41:08 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | Requested update requires the creation of a new physical resource; hence creating one. | |
20:41:08 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | Requested update requires the creation of a new physical resource; hence creating one. | |
20:41:08 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | Requested update requires the creation of a new physical resource; hence creating one. | |
20:41:08 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | Requested update requires the creation of a new physical resource; hence creating one. | |
20:41:05 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
20:41:01 UTC+0900 | UPDATE_COMPLETE | AWS::EC2::VPC | VPC | ||
20:40:44 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPC | VPC | Resource creation Initiated | |
20:40:43 UTC+0900 | UPDATE_IN_PROGRESS | AWS::EC2::VPC | VPC | Requested update requires the creation of a new physical resource; hence creating one. | |
20:40:29 UTC+0900 | UPDATE_IN_PROGRESS | AWS::CloudFormation::Stack | test-stack | User Initiated | |
20:39:39 UTC+0900 | CREATE_COMPLETE | AWS::CloudFormation::Stack | test-stack | ||
20:39:37 UTC+0900 | CREATE_COMPLETE | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | ||
20:39:22 UTC+0900 | CREATE_COMPLETE | AWS::EC2::Route | PublicRoute | ||
20:39:22 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | Resource creation Initiated | |
20:39:21 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::SubnetRouteTableAssociation | PublicSubnetRouteTableAssociationA | ||
20:39:19 UTC+0900 | CREATE_COMPLETE | AWS::EC2::SecurityGroup | WebGroup | ||
20:39:19 UTC+0900 | CREATE_COMPLETE | AWS::EC2::SecurityGroup | SSHGroup | ||
20:39:18 UTC+0900 | CREATE_COMPLETE | AWS::EC2::Subnet | PublicSubnetA | ||
20:39:18 UTC+0900 | CREATE_COMPLETE | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
20:39:17 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | Resource creation Initiated | |
20:39:17 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | Resource creation Initiated | |
20:39:07 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::Route | PublicRoute | Resource creation Initiated | |
20:39:06 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::Route | PublicRoute | ||
20:39:03 UTC+0900 | CREATE_COMPLETE | AWS::EC2::RouteTable | PublicRouteTable | ||
20:39:02 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | AttachGateway | Resource creation Initiated | |
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | Resource creation Initiated | |
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | Resource creation Initiated | |
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | WebGroup | ||
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::VPCGatewayAttachment | AttachGateway | ||
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::RouteTable | PublicRouteTable | ||
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::SecurityGroup | SSHGroup | ||
20:39:01 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::Subnet | PublicSubnetA | ||
20:38:57 UTC+0900 | CREATE_COMPLETE | AWS::EC2::VPC | VPC | ||
20:38:57 UTC+0900 | CREATE_COMPLETE | AWS::EC2::InternetGateway | InternetGateway | ||
20:38:41 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::InternetGateway | InternetGateway | Resource creation Initiated | |
20:38:40 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::VPC | VPC | Resource creation Initiated | |
20:38:40 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::InternetGateway | InternetGateway | ||
20:38:40 UTC+0900 | CREATE_IN_PROGRESS | AWS::EC2::VPC | VPC | ||
20:38:25 UTC+0900 | CREATE_IN_PROGRESS | AWS::CloudFormation::Stack | test-stack | User Initiated |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Sample Template : Sample. ", | |
"Resources" : { | |
"VPC" : { | |
"Type" : "AWS::EC2::VPC", | |
"Properties" : { | |
"CidrBlock" : "10.0.0.0/16", | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"PublicSubnetA" : { | |
"Type" : "AWS::EC2::Subnet", | |
"Properties" : { | |
"VpcId" : { "Ref" : "VPC" }, | |
"CidrBlock" : "10.0.0.0/24", | |
"AvailabilityZone" : "ap-northeast-1a", | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"InternetGateway" : { | |
"Type" : "AWS::EC2::InternetGateway", | |
"Properties" : { | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"AttachGateway" : { | |
"Type" : "AWS::EC2::VPCGatewayAttachment", | |
"Properties" : { | |
"VpcId" : { "Ref" : "VPC" }, | |
"InternetGatewayId" : { "Ref" : "InternetGateway" } | |
} | |
}, | |
"PublicRouteTable" : { | |
"Type" : "AWS::EC2::RouteTable", | |
"Properties" : { | |
"VpcId" : {"Ref" : "VPC"}, | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"PublicRoute" : { | |
"Type" : "AWS::EC2::Route", | |
"Properties" : { | |
"RouteTableId" : { "Ref" : "PublicRouteTable" }, | |
"DestinationCidrBlock" : "0.0.0.0/0", | |
"GatewayId" : { "Ref" : "InternetGateway" } | |
} | |
}, | |
"PublicSubnetRouteTableAssociationA" : { | |
"Type" : "AWS::EC2::SubnetRouteTableAssociation", | |
"Properties" : { | |
"SubnetId" : { "Ref" : "PublicSubnetA" }, | |
"RouteTableId" : { "Ref" : "PublicRouteTable" } | |
} | |
}, | |
"SSHGroup" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Enable SSH access via port 22", | |
"VpcId" : { "Ref" : "VPC" }, | |
"SecurityGroupIngress": [{ | |
"IpProtocol" : "tcp", | |
"CidrIp" : "0.0.0.0/0", | |
"FromPort" : "22", "ToPort" : "22" | |
}] | |
} | |
}, | |
"WebGroup" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Enable HTTP access via port 80", | |
"VpcId" : { "Ref" : "VPC" }, | |
"SecurityGroupIngress": [{ | |
"IpProtocol" : "tcp", | |
"CidrIp" : "0.0.0.0/0", | |
"FromPort" : "80", "ToPort" : "80" | |
}] | |
} | |
} | |
}, | |
"Outputs" : { | |
"VpcId" : { | |
"Value" : {"Ref" : "VPC"}, | |
"Description" : "VPC ID of newly created VPC" | |
}, | |
"PublicSubnetA" : { | |
"Value" : {"Ref" : "PublicSubnetA"}, | |
"Description" : "Public Subnet in AZ A" | |
} | |
} | |
} |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Sample Template : Sample. ", | |
"Resources" : { | |
"VPC" : { | |
"Type" : "AWS::EC2::VPC", | |
"Properties" : { | |
"CidrBlock" : "10.2.0.0/16", | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"PublicSubnetA" : { | |
"Type" : "AWS::EC2::Subnet", | |
"Properties" : { | |
"VpcId" : { "Ref" : "VPC" }, | |
"CidrBlock" : "10.2.0.0/24", | |
"AvailabilityZone" : "ap-northeast-1a", | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"InternetGateway" : { | |
"Type" : "AWS::EC2::InternetGateway", | |
"Properties" : { | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"AttachGateway" : { | |
"Type" : "AWS::EC2::VPCGatewayAttachment", | |
"Properties" : { | |
"VpcId" : { "Ref" : "VPC" }, | |
"InternetGatewayId" : { "Ref" : "InternetGateway" } | |
} | |
}, | |
"PublicRouteTable" : { | |
"Type" : "AWS::EC2::RouteTable", | |
"Properties" : { | |
"VpcId" : {"Ref" : "VPC"}, | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"PublicRoute" : { | |
"Type" : "AWS::EC2::Route", | |
"Properties" : { | |
"RouteTableId" : { "Ref" : "PublicRouteTable" }, | |
"DestinationCidrBlock" : "0.0.0.0/0", | |
"GatewayId" : { "Ref" : "InternetGateway" } | |
} | |
}, | |
"PublicSubnetRouteTableAssociationA" : { | |
"Type" : "AWS::EC2::SubnetRouteTableAssociation", | |
"Properties" : { | |
"SubnetId" : { "Ref" : "PublicSubnetA" }, | |
"RouteTableId" : { "Ref" : "PublicRouteTable" } | |
} | |
}, | |
"SSHGroup" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Enable SSH access via port 22", | |
"VpcId" : { "Ref" : "VPC" }, | |
"SecurityGroupIngress": [{ | |
"IpProtocol" : "tcp", | |
"CidrIp" : "0.0.0.0/0", | |
"FromPort" : "22", "ToPort" : "22" | |
}] | |
} | |
}, | |
"WebGroup" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Enable HTTP access via port 80", | |
"VpcId" : { "Ref" : "VPC" }, | |
"SecurityGroupIngress": [{ | |
"IpProtocol" : "tcp", | |
"CidrIp" : "0.0.0.0/0", | |
"FromPort" : "80", "ToPort" : "80" | |
}] | |
} | |
} | |
}, | |
"Outputs" : { | |
"VpcId" : { | |
"Value" : {"Ref" : "VPC"}, | |
"Description" : "VPC ID of newly created VPC" | |
}, | |
"PublicSubnetA" : { | |
"Value" : {"Ref" : "PublicSubnetA"}, | |
"Description" : "Public Subnet in AZ A" | |
} | |
} | |
} |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudFormation Sample Template : Sample. ", | |
"Resources" : { | |
"VPC" : { | |
"Type" : "AWS::EC2::VPC", | |
"Properties" : { | |
"CidrBlock" : "10.0.0.0/16", | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"PublicSubnetA" : { | |
"Type" : "AWS::EC2::Subnet", | |
"Properties" : { | |
"VpcId" : { "Ref" : "VPC" }, | |
"CidrBlock" : "10.0.0.0/24", | |
"AvailabilityZone" : "ap-northeast-1a", | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"InternetGateway" : { | |
"Type" : "AWS::EC2::InternetGateway", | |
"Properties" : { | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"AttachGateway" : { | |
"Type" : "AWS::EC2::VPCGatewayAttachment", | |
"Properties" : { | |
"VpcId" : { "Ref" : "VPC" }, | |
"InternetGatewayId" : { "Ref" : "InternetGateway" } | |
} | |
}, | |
"PublicRouteTable" : { | |
"Type" : "AWS::EC2::RouteTable", | |
"Properties" : { | |
"VpcId" : {"Ref" : "VPC"}, | |
"Tags" : [ | |
{"Key" : "Application", "Value" : { "Ref" : "AWS::StackName"} }, | |
{"Key" : "Network", "Value" : "Public" } | |
] | |
} | |
}, | |
"PublicRoute" : { | |
"Type" : "AWS::EC2::Route", | |
"Properties" : { | |
"RouteTableId" : { "Ref" : "PublicRouteTable" }, | |
"DestinationCidrBlock" : "0.0.0.0/0", | |
"GatewayId" : { "Ref" : "InternetGateway" } | |
}, | |
"DependsOn": "AttachGateway" | |
}, | |
"PublicSubnetRouteTableAssociationA" : { | |
"Type" : "AWS::EC2::SubnetRouteTableAssociation", | |
"Properties" : { | |
"SubnetId" : { "Ref" : "PublicSubnetA" }, | |
"RouteTableId" : { "Ref" : "PublicRouteTable" } | |
} | |
}, | |
"SSHGroup" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Enable SSH access via port 22", | |
"VpcId" : { "Ref" : "VPC" }, | |
"SecurityGroupIngress": [{ | |
"IpProtocol" : "tcp", | |
"CidrIp" : "0.0.0.0/0", | |
"FromPort" : "22", "ToPort" : "22" | |
}] | |
} | |
}, | |
"WebGroup" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"Properties" : { | |
"GroupDescription" : "Enable HTTP access via port 80", | |
"VpcId" : { "Ref" : "VPC" }, | |
"SecurityGroupIngress": [{ | |
"IpProtocol" : "tcp", | |
"CidrIp" : "0.0.0.0/0", | |
"FromPort" : "80", "ToPort" : "80" | |
}] | |
} | |
} | |
}, | |
"Outputs" : { | |
"VpcId" : { | |
"Value" : {"Ref" : "VPC"}, | |
"Description" : "VPC ID of newly created VPC" | |
}, | |
"PublicSubnetA" : { | |
"Value" : {"Ref" : "PublicSubnetA"}, | |
"Description" : "Public Subnet in AZ A" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment