Resource Type definition for AWS::GlobalAccelerator::EndpointGroup
Basic Usage:
resource "awscc_globalaccelerator_listener" "example" {
accelerator_arn = awscc_globalaccelerator_accelerator.example.id
protocol = "TCP"
port_ranges = [{
from_port = "80"
to_port = "80"
}]
}
With accelerator and endpoint group:
resource "awscc_globalaccelerator_accelerator" "example" {
name = "Example"
ip_address_type = "IPV4"
tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
resource "awscc_globalaccelerator_listener" "example" {
accelerator_arn = awscc_globalaccelerator_accelerator.example.id
protocol = "TCP"
port_ranges = [{
from_port = "80"
to_port = "80"
}]
}
resource "awscc_globalaccelerator_endpoint_group" "example" {
endpoint_group_region = "eu-west-1"
listener_arn = awscc_globalaccelerator_listener.example.id
}
endpoint_group_region
(String) The name of the AWS Region where the endpoint group is locatedlistener_arn
(String) The Amazon Resource Name (ARN) of the listenerendpoint_configurations
(Attributes List) The list of endpoint objects. (see below for nested schema)health_check_interval_seconds
(Number) The time in seconds between each health check for an endpoint. Must be a value of 10 or 30health_check_path
(String)health_check_port
(Number) The port that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.health_check_protocol
(String) The protocol that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.port_overrides
(Attributes List) (see below for nested schema)threshold_count
(Number) The number of consecutive health checks required to set the state of the endpoint to unhealthy.traffic_dial_percentage
(Number) The percentage of traffic to sent to an AWS Regionendpoint_group_arn
(String) The Amazon Resource Name (ARN) of the endpoint groupid
(String) Uniquely identifies the resource.endpoint_configurations
Required:
endpoint_id
(String) Id of the endpoint. For Network/Application Load Balancer this value is the ARN. For EIP, this value is the allocation ID. For EC2 instances, this is the EC2 instance IDOptional:
attachment_arn
(String) Attachment ARN that provides access control to the cross account endpoint. Not required for resources hosted in the same account as the endpoint group.client_ip_preservation_enabled
(Boolean) true if client ip should be preservedweight
(Number) The weight for the endpoint.port_overrides
Required:
endpoint_port
(Number) A network port numberlistener_port
(Number) A network port numberImport is supported using the following syntax:
$ terraform import awscc_globalaccelerator_endpoint_group.example <resource ID>