AWS CodeDeploy DeploymentGroup LoadBalancerInfo
The LoadBalancerInfo property type specifies information about the load
balancer or target group used for an AWS CodeDeploy deployment group. For more information,
see
Integrating AWS CodeDeploy with Elastic Load Balancing in the AWS CodeDeploy User Guide.
For AWS CloudFormation to use the properties specified in LoadBalancerInfo, the
DeploymentStyle.DeploymentOption property must be set to
WITH_TRAFFIC_CONTROL. If DeploymentStyle.DeploymentOption is not set
to WITH_TRAFFIC_CONTROL, AWS CloudFormation ignores any settings specified in
LoadBalancerInfo.
Note
AWS CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.
LoadBalancerInfo is a property of the AWS::CodeDeploy::DeploymentGroup resource.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "ElbInfoList" : [ ELBInfo, ... ], "TargetGroupInfoList" : [ TargetGroupInfo, ... ] }
YAML
ElbInfoList: - ELBInfo TargetGroupInfoList: - TargetGroupInfo
Properties
ElbInfoList-
Information about the Elastic Load Balancing load balancer to use in the deployment.
Conditional: You must specify either
ElbInfoListorTargetGroupInfoList, but not both.Required: No
Type: List of ELBInfo
Update requires: No interruption
TargetGroupInfoList-
information about the target groups to use in the deployment. Instances are registered as targets in a target group, and traffic is routed to the target group.
Conditional: You must specify either
ElbInfoListorTargetGroupInfoList, but not both.Required: No
Type: List of TargetGroupInfo
Update requires: No interruption
