Pre-deployment hooks in serverless AWS CDK setups can execute arbitrary logic before a deployment completes, such as publishing to EventBridge, writing to DynamoDB to trigger streams, or invoking Lambda functions. The snippet demonstrates granting a pre-deployment hook the necessary IAM permissions to call a Lambda function.

1m watch time

Sort: