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.

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Provides a Target Group resource for use with Load Balancer resources.

Note: aws_alb_target_group is known as aws_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

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.

Frequently asked questions

What is AWS Elastic Load Balancing V2 Target Group?

AWS Elastic Load Balancing V2 Target Group is a resource for Elastic Load Balancing V2 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.