Skip to main content

aws_dms_replication_subnet_groups Resource

Use the aws_dms_replication_subnet_groups InSpec audit resource to test properties of multiple DMS replication instance subnet groups.

For additional information, including details on parameters and properties, see the AWS documentation on DMS Replication Subnet Group.

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 subnet group exists.

describe aws_dms_replication_subnet_groups do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

replication_subnet_group_identifiers
The identifiers of the replication subnet groups.
replication_subnet_group_descriptions
The descriptions of the replication subnet groups.
vpc_ids
The IDs of the virtual private clouds.
subnet_group_statuses
The statuses of the replication subnet groups.
subnets
The subnets that are in the replication subnet groups.

Examples

Ensure an identifier is available.

describe aws_dms_replication_subnet_groups do
  its('replication_subnet_group_identifiers') { should include 'REPLICATION_SUBNET_GROUP_IDENTIFIER' }
end

Ensure that the VPC is available.

describe aws_dms_replication_subnet_groups do
    its('vpc_ids') { should include 'VPC_ID' }
end

Matchers

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

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

exist

Use should to test that the entity exists.

describe aws_dms_replication_subnet_groups do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_dms_replication_subnet_groups do
  it { should_not exist }
end

be_available

Use should to check if the work_group name is available.

describe aws_dms_replication_subnet_groups do
  it { should be_available }
end

AWS Permissions

Your Principal will need the DatabaseMigrationService:Client:DescribeReplicationSubnetGroupsResponse action with Effect set to Allow.

Edit this page on GitHub

Thank you for your feedback!

×









Search Results