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
-
arnoptional computed - string -
endpoint_group_regionoptional computed - string -
health_check_interval_secondsoptional - number -
health_check_pathoptional computed - string -
health_check_portoptional computed - number -
health_check_protocoloptional - string -
idoptional computed - string -
listener_arnrequired - string -
threshold_countoptional - number -
traffic_dial_percentageoptional - number -
endpoint_configurationset block-
client_ip_preservation_enabledoptional computed - bool -
endpoint_idoptional - string -
weightoptional - number
-
-
port_overrideset block-
endpoint_portrequired - number -
listener_portrequired - number
-
-
timeoutssingle 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
-
ListenerArnrequired - String -
EndpointGroupRegionrequired - String -
EndpointConfigurationsoptional - List of EndpointConfiguration -
TrafficDialPercentageoptional - Double -
HealthCheckPortoptional - Integer -
HealthCheckProtocoloptional - String -
HealthCheckPathoptional - String -
HealthCheckIntervalSecondsoptional - Integer -
ThresholdCountoptional - Integer -
PortOverridesoptional - List of PortOverride
Explanation in CloudFormation Registry
The
AWS::GlobalAccelerator::EndpointGroupresource 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.