Download AWS CloudFormation User Guide
Transcript
AWS CloudFormation User Guide
Amazon ECS Service LoadBalancers
"Type" : "AWS::ElasticLoadBalancing::LoadBalancer",
"Properties" : {
"AvailabilityZones" : { "Fn::GetAZs" : "" },
"Listeners" : [ {
"LoadBalancerPort" : "80",
"InstancePort" : { "Ref" : "WebServerPort" },
"Protocol" : "HTTP"
} ],
"HealthCheck" : {
"Target" : { "Fn::Join" : [ "", ["HTTP:", { "Ref" : "WebServerPort"
}, "/"]]},
"HealthyThreshold" : "3",
"UnhealthyThreshold" : "5",
"Interval" : "30",
"Timeout" : "5"
}
}
},
"InstanceSecurityGroup" : {
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "Enable SSH access and HTTP from the load balancer
only",
"SecurityGroupIngress" : [ {
"IpProtocol" : "tcp",
"FromPort" : "22",
"ToPort" : "22",
"CidrIp" : "0.0.0.0/0"
}, {
"IpProtocol" : "tcp",
"FromPort" : { "Ref" : "WebServerPort" },
"ToPort" : { "Ref" : "WebServerPort" },
"SourceSecurityGroupOwnerId" : {"Fn::GetAtt" : ["ElasticLoadBalancer",
"SourceSecurityGroup.OwnerAlias"]},
"SourceSecurityGroupName" : {"Fn::GetAtt" : ["ElasticLoadBalancer",
"SourceSecurityGroup.GroupName"]}
} ]
}
}
See Also
• Amazon EC2 Security Groups in the Amazon EC2 User Guide
Amazon EC2 Container Service Service
LoadBalancers
LoadBalancers is a property of the AWS::ECS::Service (p. 414) resource that specifies the load balancer
to associate with an Amazon EC2 Container Service (Amazon ECS) service.
API Version 2010-05-15
587
Related documents
Erste Schritte mit AWS Webanwendungshosting für Microsoft Windows
Sharp FO-781 Specifications
Apache MP3-341 Specifications
Erste Schritte mit AWS
Installation and configuration guide Installation & Configuration guide
Deployment of Virtual Resources Using Template Management
D9.6 Automated deployment
COMPUTATION CLOUD TO ENABLE HIGH THROUGHPUT
EC2 User Guide for Linux - Documentation
AWS Toolkit for Visual Studio User Guide
Amazon Simple Storage Service Console User Guide