Skip to main content

aws_lambda_code_signing_configs Resource

Use the aws_lambda_code_signing_configs InSpec audit resource to test properties of multiple AWS Lambda code signing configurations.

The AWS::Lambda::CodeSigningConfig resource specifies the details about a code signing configuration.

For additional information, including details on parameters and properties, see the AWS documentation on AWS SSM CodeSigningConfig.

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 code signing config exists.

describe aws_lambda_code_signing_configs do
  it { should exist }
end

Parameters

This resource does not require any parameters.

Properties

code_signing_config_ids
Unique identifier for the Code signing configuration.

Field: code_signing_config_id

code_signing_config_arns
The Amazon Resource Name (ARN) of the Code signing configuration.

Field: code_signing_config_arn

descriptions
Code signing configuration description.

Field: description

allowed_publishers
The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

Field: allowed_publishers

code_signing_policies
Code signing configuration policy for deployment validation failure.

Field: code_signing_policies

last_modified
The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).

Field: last_modified

Examples

Ensure a code signing config id is available.

describe aws_lambda_code_signing_configs do
  its('code_signing_config_ids') { should include 'CODE_SIGNING_CONFIG_ID' }
end

Ensure a code signing config arn is available.

describe aws_lambda_code_signing_configs do
  its('code_signing_config_arns') { should include 'CODE_SIGNING_CONFIG_ARN' }
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_lambda_code_signing_configs do
  it { should exist }
end

Use should_not to test the entity does not exist.

describe aws_lambda_code_signing_configs do
  it { should_not exist }
end

be_available

Use should to check if the entity is available.

describe aws_lambda_code_signing_configs do
  it { should be_available }
end

AWS Permissions

Your Principal will need the Lambda:Client:ListCodeSigningConfigsResponse action with Effect set to Allow.

Edit this page on GitHub

Thank you for your feedback!

×









Search Results