AWS Global Accelerator Endpoint Group
This page shows how to write Terraform and CloudFormation for Global Accelerator Endpoint Group and write them securely.
aws_globalaccelerator_endpoint_group (Terraform)
The Endpoint Group in Global Accelerator can be configured in Terraform with the resource name aws_globalaccelerator_endpoint_group
. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_globalaccelerator_endpoint_group" "https" {
listener_arn = aws_globalaccelerator_listener.https.id
endpoint_configuration {
endpoint_id = aws_lb.example.arn
weight = 100
resource "aws_globalaccelerator_endpoint_group" "main" {
listener_arn = aws_globalaccelerator_listener.main_listener.id
endpoint_configuration {
endpoint_id = aws_lb.main.arn
weight = 100
resource "aws_globalaccelerator_endpoint_group" "http" {
count = var.add_elb_listener ? 1 : 0
listener_arn = aws_globalaccelerator_listener.http.id
health_check_protocol = "TCP"
health_check_port = 80
resource "aws_globalaccelerator_endpoint_group" "ga-endpoint-groups-ire-dev" {
listener_arn = aws_globalaccelerator_listener.ga-listener-dev.id
endpoint_group_region = var.aws_region_ire
endpoint_configuration {
endpoint_id = aws_lb.first-alb-ire-dev.arn
resource "aws_globalaccelerator_endpoint_group" "alb_endpoint" {
listener_arn = aws_globalaccelerator_listener.test_listener.id
endpoint_group_region = var.aws_region
endpoint_configuration {
endpoint_id = aws_lb.test_alb.id
Parameters
-
arn
optional computed - string -
endpoint_group_region
optional computed - string -
health_check_interval_seconds
optional - number -
health_check_path
optional computed - string -
health_check_port
optional computed - number -
health_check_protocol
optional - string -
id
optional computed - string -
listener_arn
required - string -
threshold_count
optional - number -
traffic_dial_percentage
optional - number -
endpoint_configuration
set block-
client_ip_preservation_enabled
optional computed - bool -
endpoint_id
optional - string -
weight
optional - number
-
-
port_override
set block-
endpoint_port
required - number -
listener_port
required - number
-
-
timeouts
single block
Explanation in Terraform Registry
Provides a Global Accelerator endpoint group.
AWS::GlobalAccelerator::EndpointGroup (CloudFormation)
The EndpointGroup in GlobalAccelerator can be configured in CloudFormation with the resource name AWS::GlobalAccelerator::EndpointGroup
. 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
-
ListenerArn
required - String -
EndpointGroupRegion
required - String -
EndpointConfigurations
optional - List of EndpointConfiguration -
TrafficDialPercentage
optional - Double -
HealthCheckPort
optional - Integer -
HealthCheckProtocol
optional - String -
HealthCheckPath
optional - String -
HealthCheckIntervalSeconds
optional - Integer -
ThresholdCount
optional - Integer -
PortOverrides
optional - List of PortOverride
Explanation in CloudFormation Registry
The
AWS::GlobalAccelerator::EndpointGroup
resource is a Global Accelerator resource type that contains information about how you create an endpoint group for the specified listener. An endpoint group is a collection of endpoints in one AWS Region.
Frequently asked questions
What is AWS Global Accelerator Endpoint Group?
AWS Global Accelerator Endpoint Group is a resource for Global Accelerator of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.
Where can I find the example code for the AWS Global Accelerator Endpoint Group?
For Terraform, the cpilsworth/apex-domain-redirect, bschaatsbergen/aws-globalaccelerator-demo and almirosmanovic/aws-global-accelerator source code examples are useful. See the Terraform Example section for further details.