Resource: aws_route53_resolver_endpoint

Provides a Route 53 Resolver endpoint resource.

Example Usage

resource "aws_route53_resolver_endpoint" "foo" {
  name      = "foo"
  direction = "INBOUND"

  security_group_ids = [
    aws_security_group.sg1.id,
    aws_security_group.sg2.id,
  ]

  ip_address {
    subnet_id = aws_subnet.sn1.id
  }

  ip_address {
    subnet_id = aws_subnet.sn2.id
    ip        = "10.0.64.4"
  }

  protocols = ["Do53", "DoH"]

  tags = {
    Environment = "Prod"
  }
}

Argument Reference

This resource supports the following arguments:

The ip_address object supports the following:

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

import {
  to = aws_route53_resolver_endpoint.foo
  id = "rslvr-in-abcdef01234567890"
}

Using terraform import, import Route 53 Resolver endpoints using the Route 53 Resolver endpoint ID. For example:

% terraform import aws_route53_resolver_endpoint.foo rslvr-in-abcdef01234567890