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 =

  endpoint_configuration {
    endpoint_id = aws_lb.example.arn
    weight      = 100
resource "aws_globalaccelerator_endpoint_group" "main" {
  listener_arn =

  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          =
  health_check_protocol = "TCP"
  health_check_port     = 80

resource "aws_globalaccelerator_endpoint_group" "ga-endpoint-groups-ire-dev" {
  listener_arn =
  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          =
  endpoint_group_region = var.aws_region

  endpoint_configuration {
    endpoint_id =


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.


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.