Skip to main content

aws_route53resolver_resolver_rule_associations Resource

Use the aws_route53resolver_resolver_rule_associations InSpec audit resource to test properties of multiple AWS Route53 Resolver rule associations.

The Resolver rule association determines which DNS queries that originate in the VPC are forwarded to your network.

For additional information, including details on parameters and properties, see the AWS documentation on AWS Route53Resolver Resolver Rule Association.

Install

This resource is available in the Chef InSpec AWS resource pack.

For information on configuring your AWS environment for Chef InSpec and creating an InSpec profile that uses the InSpec AWS resource pack, see the Chef InSpec documentation on the AWS cloud platform.

Syntax

Ensure that a resolver name exists.

describe aws_route53resolver_resolver_rule_associations do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

ids
The ID of the association between a Resolver rule and a VPC.
resolver_rule_ids
The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.
names
The name of an association between a Resolver rule and a VPC.
vpc_ids
The ID of the VPC that you associated the Resolver rule with.
statuses
A code that specifies the current status of the association between a Resolver rule and a VPC.
status_messages
A detailed description of the status of the association between a Resolver rule and a VPC.

Examples

Ensure a resolver name is available.

describe aws_route53resolver_resolver_rule_associations do
  its('names') { should include 'RESOLVER_RULE_NAME' }
end

Ensure that the status is COMPLETE or FAILED.

describe aws_route53resolver_resolver_rule_associations do
  its('statuses') { should include 'COMPLETE' }
end

Matchers

For a full list of available matchers, see our Universal Matchers page.

The controls will pass if the list method returns at least one result.

exist

Use should to test that the entity exists.

describe aws_route53resolver_resolver_rule_associations do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_route53resolver_resolver_rule_associations do
  it { should_not exist }
end

be_available

Use should to check if the entity is available.

describe aws_athena_work_groups do
  it { should be_available }
end

AWS Permissions

Your Principal will need the Route53Resolver:Client:ListResolverRuleAssociationsResponse action with Effect set to Allow.

Edit this page on GitHub

Thank you for your feedback!

×









Search Results