This module creates following resources.
aws_lb_target_group
aws_lb_target_group_attachment
(optional)aws_lambda_permission
(optional)
Name | Version |
---|---|
terraform | >= 1.6 |
aws | >= 5.38 |
Name | Version |
---|---|
aws | 5.58.0 |
Name | Source | Version |
---|---|---|
resource_group | tedilabs/misc/aws//modules/resource-group | ~> 0.10.0 |
Name | Type |
---|---|
aws_lambda_permission.this | resource |
aws_lb_target_group.this | resource |
aws_lb_target_group_attachment.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | (Required) Name of the target group. | string |
n/a | yes |
health_check | (Optional) Health Check configuration block. The associated load balancer periodically sends requests to the registered targets to test their status. health_check block as defined below.(Optional) enabled - Whether health checks are enabled. Health checks count as a request for your Lambda function. Defaults to false .(Optional) path - Use the default path of / to ping the root, or specify a custom path if preferred.(Optional) success_codes - The HTTP codes to use when checking for a successful response from a target. You can specify multiple values (for example, 200,202 ) or a range of values (for example, 200-299 ). Defaults to 200 .(Optional) healthy_threshold - The number of consecutive health checks successes required before considering an unhealthy target healthy. Valid value range is 2 - 10. Defaults to 5 .(Optional) unhealthy_threshold - The number of consecutive health check failures required before considering a target unhealthy. Valid value range is 2 - 10. Defaults to 2 .(Optional) interval - Approximate amount of time, in seconds, between health checks of an individual target. Valid value range is 5 - 300. Defaults to 35 .(Optional) timeout - The amount of time, in seconds, during which no response means a failed health check. Valid value range is 2 - 120. Defaults to 30 . |
object({ |
{} |
no |
module_tags_enabled | (Optional) Whether to create AWS Resource Tags for the module informations. | bool |
true |
no |
multi_value_headers_enabled | (Optional) Indicates whether the request and response headers that are exchanged between the load balancer and the Lambda function include arrays of values or strings. Defaults to false . If the value is false and the request contains a duplicate header field name or query parameter key, the load balancer uses the last value sent by the client. |
bool |
false |
no |
resource_group_description | (Optional) The description of Resource Group. | string |
"Managed by Terraform." |
no |
resource_group_enabled | (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. | bool |
true |
no |
resource_group_name | (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws . |
string |
"" |
no |
tags | (Optional) A map of tags to add to all resources. | map(string) |
{} |
no |
targets | (Optional) A list of targets to add to the target group. The Lambda target group is limited to a single Lambda function target. The load balancer starts routing requests to a newly registered target as soon as the registration process completes and the target passes the initial health checks (if enabled). Each value of targets block as defined below.(Required) lambda_function - The Amazon Resource Name (ARN) of the target Lambda. If your ARN does not specify a version or alias, the latest version ($LATEST) will be used by default. ARNs that specify a version / alias do so after the function name, and are separated by a colon. |
set(object({ |
[] |
no |
Name | Description |
---|---|
arn | The Amazon Resource Name (ARN) of the target group. |
arn_suffix | The ARN suffix for use with CloudWatch Metrics. |
attributes | Attributes of the Lambda target group of application load balancer. |
health_check | Health Check configuration of the target group. |
id | The ID of the target group. |
load_balancers | The ARNs (Amazon Resource Name) of the load balancers associated with the target group. |
name | The name of the target group. |
targets | A list of targets in the target group. The Lambda target group is limited to a single Lambda function target. |
type | The target type of the target group. |