Resource: aws_route53_resolver_firewall_rule_group_association

Provides a Route 53 Resolver DNS Firewall rule group association resource.

Example Usage

resource "aws_route53_resolver_firewall_rule_group" "example" {
  name = "example"
}

resource "aws_route53_resolver_firewall_rule_group_association" "example" {
  name                   = "example"
  firewall_rule_group_id = aws_route53_resolver_firewall_rule_group.example.id
  priority               = 100
  vpc_id                 = aws_vpc.example.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 Route 53 Resolver DNS Firewall rule group associations using the Route 53 Resolver DNS Firewall rule group association ID. For example:

import {
  to = aws_route53_resolver_firewall_rule_group_association.example
  id = "rslvr-frgassoc-0123456789abcdef"
}

Using terraform import, import Route 53 Resolver DNS Firewall rule group associations using the Route 53 Resolver DNS Firewall rule group association ID. For example:

% terraform import aws_route53_resolver_firewall_rule_group_association.example rslvr-frgassoc-0123456789abcdef