Resource: aws_route53_resolver_config

Provides a Route 53 Resolver config resource.

Example Usage

resource "aws_vpc" "example" {
  cidr_block           = "10.0.0.0/16"
  enable_dns_support   = true
  enable_dns_hostnames = true
}

resource "aws_route53_resolver_config" "example" {
  resource_id              = aws_vpc.example.id
  autodefined_reverse_flag = "DISABLE"
}

Argument Reference

This resource supports the following arguments:

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 Route 53 Resolver configs using the Route 53 Resolver config ID. For example:

import {
  to = aws_route53_resolver_config.example
  id = "rslvr-rc-715aa20c73a23da7"
}

Using terraform import, import Route 53 Resolver configs using the Route 53 Resolver config ID. For example:

% terraform import aws_route53_resolver_config.example rslvr-rc-715aa20c73a23da7