AWS Global Accelerator Listener

This page shows how to write Terraform and CloudFormation for Global Accelerator Listener and write them securely.

aws_globalaccelerator_listener (Terraform)

The Listener in Global Accelerator can be configured in Terraform with the resource name aws_globalaccelerator_listener. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

accelerator.tf#L7
resource "aws_globalaccelerator_listener" "https" {
  accelerator_arn = aws_globalaccelerator_accelerator.example.id
  protocol        = "TCP"

  port_range {
    from_port = 443
main.tf#L25
resource "aws_globalaccelerator_listener" "http" {
  accelerator_arn = aws_globalaccelerator_accelerator.this.id
  client_affinity = "NONE"
  protocol        = "TCP"

  port_range {
main.tf#L20
resource "aws_globalaccelerator_listener" "http" {
  accelerator_arn = aws_globalaccelerator_accelerator.this.id
  client_affinity = "NONE"
  protocol        = "TCP"

  port_range {
globalaccelerator.tf#L7
resource "aws_globalaccelerator_listener" "default" {
  accelerator_arn = aws_globalaccelerator_accelerator.default.id
  protocol        = "TCP"
  port_range {
    from_port = 80
    to_port   = 80
ga.tf#L13
resource "aws_globalaccelerator_listener" "main_listener" {
  accelerator_arn = aws_globalaccelerator_accelerator.main.id
  client_affinity = "SOURCE_IP"
  protocol        = "TCP"

  port_range {

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 listener.

AWS::GlobalAccelerator::Listener (CloudFormation)

The Listener in GlobalAccelerator can be configured in CloudFormation with the resource name AWS::GlobalAccelerator::Listener. 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::Listener resource is a Global Accelerator resource type that contains information about how you create a listener to process inbound connections from clients to an accelerator. Connections arrive to assigned static IP addresses on a port, port range, or list of port ranges that you specify.

Frequently asked questions

What is AWS Global Accelerator Listener?

AWS Global Accelerator Listener 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 Listener?

For Terraform, the cpilsworth/apex-domain-redirect, almirosmanovic/aws-global-accelerator and rails-on-services/terraform-aws-globalaccelerator source code examples are useful. See the Terraform Example section for further details.