Resource: aws_globalaccelerator_custom_routing_accelerator

Creates a Global Accelerator custom routing accelerator.

Example Usage

resource "aws_globalaccelerator_custom_routing_accelerator" "example" {
  name            = "Example"
  ip_address_type = "IPV4"
  ip_addresses    = ["1.2.3.4"]
  enabled         = true

  attributes {
    flow_logs_enabled   = true
    flow_logs_s3_bucket = "example-bucket"
    flow_logs_s3_prefix = "flow-logs/"
  }
}

Argument Reference

This resource supports the following arguments:

attributes supports the following arguments:

Attribute Reference

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

ip_sets exports the following attributes:

Timeouts

Configuration options:

Import

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

import {
  to = aws_globalaccelerator_custom_routing_accelerator.example
  id = "arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Using terraform import, import Global Accelerator custom routing accelerators using the arn. For example:

% terraform import aws_globalaccelerator_custom_routing_accelerator.example arn:aws:globalaccelerator::111111111111:accelerator/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx