AWS CDK Signer Construct Library

1.204.0 · active · verified Fri Apr 17

The `aws-cdk-aws-signer` library provides AWS Cloud Development Kit (CDK) constructs for defining AWS Signer resources. It simplifies the creation and management of signing profiles, allowing you to sign code and artifacts with robust cryptographic integrity. This entry reflects version 1.204.0, part of the CDK v1 series, which typically follows a rapid release cadence with new features and bug fixes.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to define a basic AWS Signer Signing Profile using the `aws-cdk-aws-signer` construct library. It creates a profile suitable for AWS Lambda code signing with a 30-day validity period and exports its ARN.

import aws_cdk as cdk
from aws_cdk import aws_signer as signer

app = cdk.App()
stack = cdk.Stack(app, "MySignerStack")

# Create an AWS Signer Signing Profile
signing_profile = signer.SigningProfile(
    stack, "MySigningProfile",
    platform=signer.Platform.AWS_LAMBDA_SHA384_ECDSA,
    signature_validity=cdk.Duration.days(30)
)

cdk.CfnOutput(stack, "SigningProfileArn", value=signing_profile.signing_profile_arn)

app.synth()

view raw JSON →