1.1 KiB
1.1 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
aws | AWS: aws_autoscaling_attachment | docs-aws-resource-autoscaling-attachment | Provides an AutoScaling Group Attachment resource. |
aws_autoscaling_attachment
Provides an AutoScaling Attachment resource.
~> NOTE on AutoScaling Groups and ASG Attachments: Terraform currently provides
both a standalone ASG Attachment resource (describing an ASG attached to
an ELB), and an AutoScaling Group resource with
load_balancers
defined in-line. At this time you cannot use an ASG with in-line
load balancers in conjunction with an ASG Attachment resource. Doing so will cause a
conflict and will overwrite attachments.
Example Usage
# Create a new load balancer attachment
resource "aws_autoscaling_attachment" "asg_attachment_bar" {
autoscaling_group_name = "${aws_autoscaling_group.asg.id}"
elb = "${aws_elb.bar.id}"
}
Argument Reference
The following arguments are supported:
autoscaling_group_name
- (Required) Name of ASG to associate with the ELB.elb
- (Required) The name of the ELB.