Resource: aws_globalaccelerator_custom_routing_endpoint_group

Provides a Global Accelerator custom routing endpoint group.

Example Usage

resource "aws_globalaccelerator_custom_routing_endpoint_group" "example" {
  listener_arn = aws_globalaccelerator_custom_routing_listener.example.id

  destination_configuration {
    from_port = 80
    to_port   = 8080
    protocols = ["TCP"]
  }

  endpoint_configuration {
    endpoint_id = aws_subnet.example.id
  }
}

Argument Reference

This resource supports the following arguments:

destination_configuration supports the following arguments:

endpoint_configuration supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Global Accelerator custom routing endpoint groups using the id. For example:

import {
  to = aws_globalaccelerator_custom_routing_endpoint_group.example
  id = "arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxx/endpoint-group/xxxxxxxx"
}

Using terraform import, import Global Accelerator custom routing endpoint groups using the id. For example:

% terraform import aws_globalaccelerator_custom_routing_endpoint_group.example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/listener/xxxxxxx/endpoint-group/xxxxxxxx