AWS Elastic Load Balancing V2 Target Group
This page shows how to write Terraform and CloudFormation for Elastic Load Balancing V2 Target Group and write them securely.
aws_lb_target_group (Terraform)
The Target Group in Elastic Load Balancing V2 can be configured in Terraform with the resource name aws_lb_target_group
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
arn
optional computed - string -
arn_suffix
optional computed - string -
deregistration_delay
optional - number -
id
optional computed - string -
lambda_multi_value_headers_enabled
optional - bool -
load_balancing_algorithm_type
optional computed - string -
name
optional computed - string -
name_prefix
optional - string -
port
optional - number -
preserve_client_ip
optional computed - string -
protocol
optional - string -
protocol_version
optional computed - string -
proxy_protocol_v2
optional - bool -
slow_start
optional - number -
tags
optional - map from string to string -
target_type
optional - string -
vpc_id
optional - string -
health_check
list block-
enabled
optional - bool -
healthy_threshold
optional - number -
interval
optional - number -
matcher
optional computed - string -
path
optional computed - string -
port
optional - string -
protocol
optional - string -
timeout
optional computed - number -
unhealthy_threshold
optional - number
-
-
stickiness
list block-
cookie_duration
optional - number -
enabled
optional - bool -
type
required - string
-
Explanation in Terraform Registry
Provides a Target Group resource for use with Load Balancer resources.
Note:
aws_alb_target_group
is known asaws_lb_target_group
. The functionality is identical.
AWS::ElasticLoadBalancingV2::TargetGroup (CloudFormation)
The TargetGroup in ElasticLoadBalancingV2 can be configured in CloudFormation with the resource name AWS::ElasticLoadBalancingV2::TargetGroup
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
-
HealthCheckEnabled
optional - Boolean -
HealthCheckIntervalSeconds
optional - Integer -
HealthCheckPath
optional - String -
HealthCheckPort
optional - String -
HealthCheckProtocol
optional - String -
HealthCheckTimeoutSeconds
optional - Integer -
HealthyThresholdCount
optional - Integer -
IpAddressType
optional - String -
Matcher
optional - Matcher -
Name
optional - String -
Port
optional - Integer -
Protocol
optional - String -
ProtocolVersion
optional - String -
Tags
optional - List of Tag -
TargetGroupAttributes
optional - List of TargetGroupAttribute -
TargetType
optional - String -
Targets
optional - List of TargetDescription -
UnhealthyThresholdCount
optional - Integer -
VpcId
optional - String
Explanation in CloudFormation Registry
Specifies a target group for a load balancer.
Before you register a Lambda function as a target, you must create a
AWS::Lambda::Permission
resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.