aws_dms_replication_instance Resource
Use the aws_dms_replication_instance
InSpec audit resource to test properties of a single AWS DMS replication instance.
The AWS::DMS::ReplicationInstance resource creates an AWS DMS replication instance.
For additional information, including details on parameters and properties, see the AWS documentation on DMS replication instances.
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 replication instance exists.
describe aws_dms_replication_instance do
it { should exist }
end
Parameters
This resource does not require any parameters.
Properties
engine_version
- The engine version of the replication instance.
replication_instance_class
- The compute and memory capacity of the replication instance as defined for the specified replication instance class.
storage_type
- The storage type of the replication instance.
min_allocated_storage
- The min allocated storage of the replication instance.
max_allocated_storage
- The max allocated storage of the replication instance.
default_allocated_storage
- The default allocated storage of the replication instance in gigabytes.
included_allocated_storage
- The included allocated storage of the replication instance in gigabytes.
availability_zones
- The availability zones of the replication instance.
release_status
- The release status of the replication instance.
Examples
Ensure an engine version is available.
describe aws_dms_replication_instance do
its('engine_version') { should eq '3.4.4' }
end
Ensure that the replication instance class is dms.c4.2xlarge
.
describe aws_dms_replication_instance do
its('replication_instance_class') { should eq 'dms.c4.2xlarge' }
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_instance do
it { should exist }
end
Use should_not
to test the entity does not exist.
describe aws_dms_replication_instance do
it { should_not exist }
end
be_available
Use should
to check if the work_group name is available.
describe aws_dms_replication_instance do
it { should be_available }
end
AWS Permissions
Your Principal will need the DatabaseMigrationService:Client:DescribeOrderableReplicationInstancesResponse
action with Effect
set to Allow
.