Skip to content

Resource: awsRoute53TrafficPolicyInstance

Provides a Route53 traffic policy instance resource.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.route53TrafficPolicyInstance.Route53TrafficPolicyInstance(
  this,
  "test",
  {
    hostedZoneId: "Z033120931TAQO548OGJC",
    name: "test.example.com",
    trafficPolicyId: "b3gb108f-ea6f-45a5-baab-9d112d8b4037",
    trafficPolicyVersion: 1,
    ttl: 360,
  }
);

Argument Reference

The following arguments are required:

  • name - (Required) Domain name for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.
  • trafficPolicyId - (Required) ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.
  • trafficPolicyVersion - (Required) Version of the traffic policy
  • hostedZoneId - (Required) ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.
  • ttl - (Required) TTL that you want Amazon Route 53 to assign to all the resource record sets that it creates in the specified hosted zone.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - ID of traffic policy instance.

Import

Route53 traffic policy instance can be imported using its id.

$ terraform import aws_route53_traffic_policy_instance.test df579d9a-6396-410e-ac22-e7ad60cf9e7e