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
-
arnoptional computed - string -
arn_suffixoptional computed - string -
deregistration_delayoptional - number -
idoptional computed - string -
lambda_multi_value_headers_enabledoptional - bool -
load_balancing_algorithm_typeoptional computed - string -
nameoptional computed - string -
name_prefixoptional - string -
portoptional - number -
preserve_client_ipoptional computed - string -
protocoloptional - string -
protocol_versionoptional computed - string -
proxy_protocol_v2optional - bool -
slow_startoptional - number -
tagsoptional - map from string to string -
target_typeoptional - string -
vpc_idoptional - string -
health_checklist block-
enabledoptional - bool -
healthy_thresholdoptional - number -
intervaloptional - number -
matcheroptional computed - string -
pathoptional computed - string -
portoptional - string -
protocoloptional - string -
timeoutoptional computed - number -
unhealthy_thresholdoptional - number
-
-
stickinesslist block-
cookie_durationoptional - number -
enabledoptional - bool -
typerequired - string
-
Explanation in Terraform Registry
Provides a Target Group resource for use with Load Balancer resources.
Note:
aws_alb_target_groupis 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
-
HealthCheckEnabledoptional - Boolean -
HealthCheckIntervalSecondsoptional - Integer -
HealthCheckPathoptional - String -
HealthCheckPortoptional - String -
HealthCheckProtocoloptional - String -
HealthCheckTimeoutSecondsoptional - Integer -
HealthyThresholdCountoptional - Integer -
IpAddressTypeoptional - String -
Matcheroptional - Matcher -
Nameoptional - String -
Portoptional - Integer -
Protocoloptional - String -
ProtocolVersionoptional - String -
Tagsoptional - List of Tag -
TargetGroupAttributesoptional - List of TargetGroupAttribute -
TargetTypeoptional - String -
Targetsoptional - List of TargetDescription -
UnhealthyThresholdCountoptional - Integer -
VpcIdoptional - 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::Permissionresource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.