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

accelerator.tf#L17
resource "aws_globalaccelerator_endpoint_group" "https" {
  listener_arn = aws_globalaccelerator_listener.https.id

  endpoint_configuration {
    endpoint_id = aws_lb.example.arn
    weight      = 100
ga.tf#L24
resource "aws_globalaccelerator_endpoint_group" "main" {
  listener_arn = aws_globalaccelerator_listener.main_listener.id

  endpoint_configuration {
    endpoint_id = aws_lb.main.arn
    weight      = 100
main.tf#L46
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

ga.tf#L25
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
global_accelerator.tf#L23
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

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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

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.