Attachment

class Attachment : KotlinCustomResource

Attaches a load balancer to an Auto Scaling group.

NOTE on Auto Scaling Groups, Attachments and Traffic Source Attachments: Pulumi provides standalone Attachment (for attaching Classic Load Balancers and Application Load Balancer, Gateway Load Balancer, or Network Load Balancer target groups) and Traffic Source Attachment (for attaching Load Balancers and VPC Lattice target groups) resources and an Auto Scaling Group resource with load_balancers, target_group_arns and traffic_source attributes. Do not use the same traffic source in more than one of these resources. Doing so will cause a conflict of attachments. A lifecycle configuration block can be used to suppress differences if necessary.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.autoscaling.Attachment;
import com.pulumi.aws.autoscaling.AttachmentArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Attachment("example", AttachmentArgs.builder()
.autoscalingGroupName(aws_autoscaling_group.example().id())
.elb(aws_elb.example().id())
.build());
}
}

Properties

Link copied to clipboard

Name of ASG to associate with the ELB.

Link copied to clipboard
val elb: Output<String>?

Name of the ELB.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lbTargetGroupArn: Output<String>?

ARN of a load balancer target group.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>