Socket
Socket
Sign inDemoInstall

cdk-triggers

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk-triggers

Execute AWS Lambda handlers during deployments of AWS CDK stacks


Maintainers
2

CDK Triggers

This project has graduated from incubation and is now part of the AWS CDK. It is no longer maintained in this repository

Please refer to the official AWS CDK documentation:

  • Documentation
  • Source Code

Usage

import * as lambda from 'aws-cdk-lib/aws-lambda';
import * as triggers from 'aws-cdk-lib/triggers';
import { Stack } from 'aws-cdk-lib';
import { Construct } from 'constructs';

declare const stack: Stack;
declare const resource1: Construct;
declare const resource2: Construct;

new triggers.TriggerFunction(stack, 'MyTrigger', {
  runtime: lambda.Runtime.NODEJS_12_X,
  handler: 'index.handler',
  code: lambda.Code.fromAsset(__dirname + '/my-trigger'),
  executeAfter: [resource1, resource2],
});

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc