Resource: aws_route53_traffic_policy

Manages a Route53 Traffic Policy.

Example Usage

resource "aws_route53_traffic_policy" "example" {
  name     = "example"
  comment  = "example comment"
  document = <<EOF
{
  "AWSPolicyFormatVersion": "2015-10-01",
  "RecordType": "A",
  "Endpoints": {
    "endpoint-start-NkPh": {
      "Type": "value",
      "Value": "10.0.0.2"
    }
  },
  "StartEndpoint": "endpoint-start-NkPh"
}
EOF
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Import

In Terraform v1.5.0 and later, use an import block to import Route53 Traffic Policy using the id and version. For example:

import {
  to = aws_route53_traffic_policy.example
  id = "01a52019-d16f-422a-ae72-c306d2b6df7e/1"
}

Using terraform import, import Route53 Traffic Policy using the id and version. For example:

% terraform import aws_route53_traffic_policy.example 01a52019-d16f-422a-ae72-c306d2b6df7e/1