AWS::OpsWorks::ElasticLoadBalancerAttachment - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::OpsWorks::ElasticLoadBalancerAttachment

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::OpsWorks::ElasticLoadBalancerAttachment", "Properties" : { "ElasticLoadBalancerName" : String, "LayerId" : String } }

YAML

Type: AWS::OpsWorks::ElasticLoadBalancerAttachment Properties: ElasticLoadBalancerName: String LayerId: String

Properties

ElasticLoadBalancerName

The Elastic Load Balancing instance name.

Required: Yes

Type: String

Update requires: No interruption

LayerId

The Amazon OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.

Required: Yes

Type: String

Update requires: No interruption

Examples

Template Snippet

The following snippet specifies a load balancer attachment to an Amazon OpsWorks layer, both of which would be described elsewhere in the same template:

JSON

"ELBAttachment" : { "Type" : "AWS::OpsWorks::ElasticLoadBalancerAttachment", "Properties" : { "ElasticLoadBalancerName" : { "Ref" : "ELB" }, "LayerId" : { "Ref" : "Layer" } } }

YAML

ELBAttachment: Type: "AWS::OpsWorks::ElasticLoadBalancerAttachment" Properties: ElasticLoadBalancerName: Ref: "ELB" LayerId: Ref: "Layer"

See also