{ "Resources": { "canaryHTTPalbvpc0A63576D": { "Type": "AWS::EC2::VPC", "Properties": { "CidrBlock": "10.0.0.0/16", "EnableDnsHostnames": true, "EnableDnsSupport": true, "InstanceTenancy": "default", "Tags": [ { "Key": "Name", "Value": "canary-HTTP-alb-vpc" } ] } }, "canaryHTTPalbvpcprivatesubnetSubnet1SubnetED2D18DF": { "Type": "AWS::EC2::Subnet", "Properties": { "VpcId": { "Ref": "canaryHTTPalbvpc0A63576D" }, "AvailabilityZone": { "Fn::Select": [ 0, { "Fn::GetAZs": "" } ] }, "CidrBlock": "10.0.0.0/24", "MapPublicIpOnLaunch": false, "Tags": [ { "Key": "aws-cdk:subnet-name", "Value": "private-subnet" }, { "Key": "aws-cdk:subnet-type", "Value": "Isolated" } ] } }, "canaryHTTPalbvpcprivatesubnetSubnet1RouteTable82A09898": { "Type": "AWS::EC2::RouteTable", "Properties": { "VpcId": { "Ref": "canaryHTTPalbvpc0A63576D" } } }, "canaryHTTPalbvpcprivatesubnetSubnet1RouteTableAssociation039F2E09": { "Type": "AWS::EC2::SubnetRouteTableAssociation", "Properties": { "RouteTableId": { "Ref": "canaryHTTPalbvpcprivatesubnetSubnet1RouteTable82A09898" }, "SubnetId": { "Ref": "canaryHTTPalbvpcprivatesubnetSubnet1SubnetED2D18DF" } } }, "canaryHTTPalbvpcprivatesubnetSubnet2SubnetDE0A915B": { "Type": "AWS::EC2::Subnet", "Properties": { "VpcId": { "Ref": "canaryHTTPalbvpc0A63576D" }, "AvailabilityZone": { "Fn::Select": [ 1, { "Fn::GetAZs": "" } ] }, "CidrBlock": "10.0.1.0/24", "MapPublicIpOnLaunch": false, "Tags": [ { "Key": "aws-cdk:subnet-name", "Value": "private-subnet" }, { "Key": "aws-cdk:subnet-type", "Value": "Isolated" } ] } }, "canaryHTTPalbvpcprivatesubnetSubnet2RouteTable24CC4F3D": { "Type": "AWS::EC2::RouteTable", "Properties": { "VpcId": { "Ref": "canaryHTTPalbvpc0A63576D" } } }, "canaryHTTPalbvpcprivatesubnetSubnet2RouteTableAssociationFC694351": { "Type": "AWS::EC2::SubnetRouteTableAssociation", "Properties": { "RouteTableId": { "Ref": "canaryHTTPalbvpcprivatesubnetSubnet2RouteTable24CC4F3D" }, "SubnetId": { "Ref": "canaryHTTPalbvpcprivatesubnetSubnet2SubnetDE0A915B" } } }, "canaryHTTPalbvpcsecgroupAE471F6C": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "GroupDescription": "canary-HTTP-alb-vpc-sec-group", "GroupName": "canary-HTTP-alb-vpc-sec-group", "SecurityGroupEgress": [ { "CidrIp": "0.0.0.0/0", "Description": "Allow all outbound traffic by default", "IpProtocol": "-1" } ], "VpcId": { "Ref": "canaryHTTPalbvpc0A63576D" } } }, "canaryHTTPalbsecgroup1FCC6225": { "Type": "AWS::EC2::SecurityGroup", "Properties": { "GroupDescription": "canary-HTTP-alb-sec-group", "GroupName": "canary-HTTP-alb-sec-group", "SecurityGroupEgress": [ { "CidrIp": "0.0.0.0/0", "Description": "Allow all outbound traffic by default", "IpProtocol": "-1" } ], "SecurityGroupIngress": [ { "CidrIp": { "Fn::GetAtt": ["canaryHTTPalbvpc0A63576D", "CidrBlock"] }, "Description": { "Fn::Join": [ "", [ "from ", { "Fn::GetAtt": ["canaryHTTPalbvpc0A63576D", "CidrBlock"] }, ":80" ] ] }, "FromPort": 80, "IpProtocol": "tcp", "ToPort": 80 } ], "VpcId": { "Ref": "canaryHTTPalbvpc0A63576D" } } }, "canaryHTTPalbC21F1830": { "Type": "AWS::ElasticLoadBalancingV2::LoadBalancer", "Properties": { "LoadBalancerAttributes": [ { "Key": "deletion_protection.enabled", "Value": "true" } ], "Name": "canary-HTTP-alb", "Scheme": "internal", "SecurityGroups": [ { "Fn::GetAtt": ["canaryHTTPalbsecgroup1FCC6225", "GroupId"] } ], "Subnets": [ { "Ref": "canaryHTTPalbvpcprivatesubnetSubnet1SubnetED2D18DF" }, { "Ref": "canaryHTTPalbvpcprivatesubnetSubnet2SubnetDE0A915B" } ], "Type": "application" } }, "canaryHTTPalbdefaultlistener1CC8861F": { "Type": "AWS::ElasticLoadBalancingV2::Listener", "Properties": { "DefaultActions": [ { "FixedResponseConfig": { "MessageBody": "mock app response", "StatusCode": "200" }, "Type": "fixed-response" } ], "LoadBalancerArn": { "Ref": "canaryHTTPalbC21F1830" }, "Port": 80, "Protocol": "HTTP" }, "Metadata": { "aws:cdk:path": "alpha-us-west-2-Service/canary-http-alb-stack/canary-HTTP-alb-default-listener/Resource" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WQQW/CMAyFf8vuaRgVlx0Zh10mhtqJK3JdMxlCEiVOJ1T1vxNKpcLJ9veerGeXevWh39/gPxbYngvDje63FIXaWgDPKguHnrDU/d6j2hztfrdRu8AdCNWpsSR3OHeVS0K/0Bia+czWMTpkEHZW1YQpsFy/gkt+ND+DQZGBKIzGQduAAYts/7qcY+29YRx3fGftc9Qo3De8zM8+zgfZyTP1w6Aqii4FHJP+JPHpccFEB2VdS/oUF91ypctl/tIpMhchWeEL6epRb/QTXgNBAQAA" }, "Metadata": { "aws:cdk:path": "alpha-us-west-2-Service/canary-http-alb-stack/CDKMetadata/Default" } } }, "Outputs": { "ALBName": { "Value": { "Fn::GetAtt": ["canaryHTTPalbC21F1830", "LoadBalancerName"] }, "Export": { "Name": "HTTP-ALB" } }, "VPC": { "Value": { "Ref": "canaryHTTPalbvpc0A63576D" }, "Export": { "Name": "HTTP-VPC-ALB" } }, "ALBArn": { "Value": { "Ref": "canaryHTTPalbC21F1830" }, "Export": { "Name": "HTTP-ALB-ARN" } }, "SecurityGroup": { "Value": { "Fn::GetAtt": ["canaryHTTPalbsecgroup1FCC6225", "GroupId"] }, "Export": { "Name": "SecurityGroup" } }, "Subnet1": { "Value": { "Fn::GetAtt": [ "canaryHTTPalbvpcprivatesubnetSubnet1SubnetED2D18DF", "SubnetId" ] }, "Export": { "Name": "Subnet1" } }, "Subnet2": { "Value": { "Fn::GetAtt": [ "canaryHTTPalbvpcprivatesubnetSubnet2SubnetDE0A915B", "SubnetId" ] }, "Export": { "Name": "Subnet2" } } } }