Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

AWSTemplateFormatVersion: '2010-09-09' | |
Description: VPC network minimum. | |
Resources: | |
Vpc: | |
Type: AWS::EC2::VPC | |
Properties: | |
CidrBlock: 10.0.0.0/16 | |
EnableDnsSupport: true | |
EnableDnsHostnames: true | |
InstanceTenancy: default | |
PublicRouteTable: | |
Type: AWS::EC2::RouteTable | |
Properties: | |
VpcId: !Ref Vpc | |
PublicSubnetA: | |
Type: AWS::EC2::Subnet | |
Properties: | |
VpcId: !Ref Vpc | |
CidrBlock: 10.0.1.0/24 | |
AvailabilityZone: ap-northeast-1a | |
MapPublicIpOnLaunch: true | |
PubSubnetARouteTableAssociation: | |
Type: AWS::EC2::SubnetRouteTableAssociation | |
Properties: | |
SubnetId: !Ref PublicSubnetA | |
RouteTableId: !Ref PublicRouteTable | |
PublicSubnetC: | |
Type: AWS::EC2::Subnet | |
Properties: | |
VpcId: !Ref Vpc | |
CidrBlock: 10.0.2.0/24 | |
AvailabilityZone: ap-northeast-1c | |
MapPublicIpOnLaunch: true | |
PubSubnetCRouteTableAssociation: | |
Type: AWS::EC2::SubnetRouteTableAssociation | |
Properties: | |
SubnetId: !Ref PublicSubnetC | |
RouteTableId: !Ref PublicRouteTable | |
InternetGateway: | |
Type: AWS::EC2::InternetGateway | |
AttachGateway: | |
Type: AWS::EC2::VPCGatewayAttachment | |
Properties: | |
VpcId: !Ref Vpc | |
InternetGatewayId: !Ref InternetGateway | |
InternetRoute: | |
Type: AWS::EC2::Route | |
DependsOn: InternetGateway | |
Properties: | |
RouteTableId: !Ref PublicRouteTable | |
DestinationCidrBlock: 0.0.0.0/0 | |
GatewayId: !Ref InternetGateway | |
SecurityGroup: | |
Type: AWS::EC2::SecurityGroup | |
Properties: | |
GroupDescription: SecurityGroup for ECS VPC | |
VpcId: !Ref Vpc | |
SecurityGroupIngress: | |
- CidrIp: 0.0.0.0/0 | |
IpProtocol: tcp | |
FromPort: 0 | |
ToPort: 65535 | |
SecurityGroupEgress: | |
- CidrIp: 0.0.0.0/0 | |
IpProtocol: tcp | |
FromPort: 0 | |
ToPort: 65535 |