Skip to main content

aws_sdb_domains Resource

Use the aws_sdb_domains InSpec audit resource to test multiple SimpleDB domain names.

Installation

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

See the Chef InSpec documentation on cloud platforms for information on configuring your AWS environment for InSpec and creating an InSpec profile that uses the InSpec AWS resource pack.

Syntax

Ensure that a domain exists.

describe aws_sdb_domains do
  it { should exist }
end

For additional information, see the AWS documentation on AWS SDB Domains..

Parameters

This resource does not require any parameters.

Properties

domain_names
A list of domain names that match the expression.

Field: domain_names

Examples

Ensure a domain name is available.

describe aws_sdb_domains do
  its('domain_names') { should include 'DOMAIN_NAME')' }
end

Matchers

This InSpec audit resource has the following special matchers. For a full list of available matchers, please visit 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_sdb_domains do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_sdb_domains do
  it { should_not exist }
end

AWS Permissions

Your Principal will need the SimpleDB:Client:ListDomainsResult action with Effect set to Allow.

Edit this page on GitHub.

Thank you for your feedback!

×









Search Results