@aws-cdk/aws-lambda-codepipeline
TypeScript icon, indicating that this package has built-in type declarations

0.8.1 • Public • Published

AWS CodePipline Actions for AWS Lambda

This module contains an Action that allows you to invoke a Lambda function from CodePipeline.

Example usage:

import codepipeline = require('@aws-cdk/aws-codepipeline');
import lambda = require('@aws-cdk/aws-lambda');
import lambdaCodepipeline = require('@aws-cdk/aws-lambda-codepipeline');

// see the @aws-cdk/aws-lambda module for more documentation on how to create Lamda functions
const lambdaFun = new lambda.Lambda(// ...
);

const pipeline = new codepipeline.Pipeline(this, 'MyPipeline');
const lambdaStage = new codepipeline.Stage(pipeline, 'Lambda');
new lambdaCodepipeline.PipelineInvokeAction(lambdaStage, 'Lambda', {
    lambda: lambdaFun,
});

See the AWS documentation on how to write a Lambda function invoked from CodePipeline.

Dependents (0)

Package Sidebar

Install

npm i @aws-cdk/aws-lambda-codepipeline

Weekly Downloads

9

Version

0.8.1

License

Apache-2.0

Unpacked Size

92.3 kB

Total Files

16

Last publish

Collaborators

  • amzn-oss
  • aws-cdk-team