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

github-iconcpilsworth/apex-domain-redirect
resource "aws_globalaccelerator_endpoint_group" "https" {
  listener_arn = aws_globalaccelerator_listener.https.id

  endpoint_configuration {
    endpoint_id = aws_lb.example.arn
    weight      = 100
github-iconbschaatsbergen/aws-globalaccelerator-demo
resource "aws_globalaccelerator_endpoint_group" "main" {
  listener_arn = aws_globalaccelerator_listener.main_listener.id

  endpoint_configuration {
    endpoint_id = aws_lb.main.arn
    weight      = 100
github-iconalmirosmanovic/aws-global-accelerator
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

github-iconshreyasinha0711/Terraform
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
github-iconHarphies/IaC
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

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.

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.