Resource: aws_route53_resolver_rule_association

Provides a Route53 Resolver rule association.

Example Usage

resource "aws_route53_resolver_rule_association" "example" {
  resolver_rule_id = aws_route53_resolver_rule.sys.id
  vpc_id           = aws_vpc.foo.id
}

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 Route53 Resolver rule associations using the id. For example:

import {
  to = aws_route53_resolver_rule_association.example
  id = "rslvr-rrassoc-97242eaf88example"
}

Using terraform import, import Route53 Resolver rule associations using the id. For example:

% terraform import aws_route53_resolver_rule_association.example rslvr-rrassoc-97242eaf88example