Creating code signing configurations for Lambda - Amazon Lambda
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Creating code signing configurations for Lambda

To enable code signing for a function, you create a code signing configuration and attach it to the function. A code signing configuration defines a list of allowed signing profiles and the policy action to take if any of the validation checks fail.

Configuration prerequisites

Before you can configure code signing for a Lambda function, use Amazon Signer to do the following:

  • Create one or more signing profiles.

  • Use a signing profile to create a signed code package for your function.

For more information, see Creating Signing Profiles (Console) in the Amazon Signer Developer Guide.

Creating code signing configurations

A code signing configuration defines a list of allowed signing profiles and the signature validation policy.

To create a code signing configuration (console)
  1. Open the Code signing configurations page of the Lambda console.

  2. Choose Create configuration.

  3. For Description, enter a descriptive name for the configuration.

  4. Under Signing profiles, add up to 20 signing profiles to the configuration.

    1. For Signing profile version ARN, choose a profile version's Amazon Resource Name (ARN), or enter the ARN.

    2. To add an additional signing profile, choose Add signing profiles.

  5. Under Signature validation policy, choose Warn or Enforce.

  6. Choose Create configuration.

Enabling code signing for a function

To enable code signing for a function, you associate a code signing configuration with the function.

To associate a code signing configuration with a function (console)
  1. Open the Functions page of the Lambda console.

  2. Choose the function for which you want to enable code signing.

  3. Open the Configuration tab.

  4. Scroll down and choose Code signing.

  5. Choose Edit.

  6. In Edit code signing, choose a code signing configuration for this function.

  7. Choose Save.