~/codewithstu

// open_source

AWS Global Accelerator

OpenTofu module for provisioning AWS Global Accelerator with static anycast IPs, listener management, endpoint groups, and S3 flow logs

View on GitHub

Overview

This module creates an AWS Global Accelerator with listeners and endpoint groups. It provides static anycast IP addresses that route traffic to optimal endpoints across multiple AWS regions.

Key Features

  • Global Accelerator creation with configurable IP address type (IPv4 or dual-stack)
  • Listener management with protocol and port range configuration
  • Endpoint group support with health checks and traffic dial percentage
  • Client affinity settings per listener
  • Optional S3 flow logs for network traffic analysis
  • Client IP preservation for endpoint configurations

Usage

module "global_accelerator" {
  source = "git::https://github.com/Im5tu/opentofu-aws-global-accelerator.git?ref=main"
 
  name            = "my-accelerator"
  ip_address_type = "IPV4"
}