Skip to main content

AwsEcsAlbServiceModuleTargetGroupSchema

Defines the target group configuration for ALB services. Target groups route requests to registered targets (such as ECS tasks) based on the configured health checks and routing rules. This schema specifies how the ALB will forward traffic to specific containers in ECS executions.

@group

Modules/Service/AwsEcsAlbService

Index

Properties

containerName

containerName: string = ...

The name of the container within the ECS task that will receive traffic. This must match the container name defined in the task definition.

containerPort

containerPort: number = ...

The port number on the container where traffic will be forwarded. This should match the port that the application is listening on inside the container.

execution

execution: Execution = ...

The ECS execution that contains the target containers for this target group. The execution must have ECS service anchors configured to be eligible as an ALB target.

healthCheck

Health check configuration for the target group. Defines how the ALB determines whether targets are healthy and can receive traffic. If not specified, default health check settings will be used. See AlbTargetGroupHealthCheckSchema for options.

Name

Name: string = ...

The name of the target group. This name is used to identify the target group within the ALB configuration and must be unique within the load balancer.