Skip to main content

aws_stepfunctions_activities Resource

Use the aws_stepfunctions_activity Chef InSpec audit resource to test properties of multiple AWS Step Functions activities.

For additional information, including details on parameters and properties, see the AWS documentation on the AWS::StepFunctions::Activity resource.

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 an activity exists.

describe aws_stepfunctions_activities do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

activity_arns
The Amazon Resource Name (ARN) that identifies the activity.

Field: activity_arn

names
The name of the activity.

Field: name

creation_dates
The date the activity is created.

Field: creation_date

Examples

Ensure an activity ARN is available.

describe aws_stepfunctions_activities do
  its('activity_arns') { should include 'ACTIVITY_ARN' }
end

Ensure an activity name is available.

describe aws_stepfunctions_activities do
  its('names') { should include 'ACTIVITY_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_stepfunctions_activities do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_stepfunctions_activities do
  it { should_not exist }
end

AWS Permissions

Your Principal will need the States:Client:ListActivitiesOutput action with Effect set to Allow.

Edit this page on GitHub.

Thank you for your feedback!

×









Search Results