Skip to main content

aws_ses_templates Resource

Use the aws_ses_templates InSpec audit resource to test properties of multiple AWS Simple Email Service (SES) templates.

The AWS::SES::Template resource specifies an email template.

For additional information, including details on parameters and properties, see the AWS documentation on AWS SES Template.

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 the template exists.

describe aws_ses_templates do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

names
The name of the template.

Field: name

created_timestamps
The time and date the template was created.

Field: created_timestamp

Examples

Ensure a template name is available.

describe aws_ses_templates do
  its('names') { should include 'TEMPLATE_NAME' }
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_ses_templates do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_ses_templates do
  it { should_not exist }
end

AWS Permissions

Your Principal will need the SES:Client:ListTemplatesResponse action with Effect set to Allow.

Edit this page on GitHub

Thank you for your feedback!

×










Search Results