Skip to content

Latest commit

 

History

History
68 lines (59 loc) · 1.89 KB

README.md

File metadata and controls

68 lines (59 loc) · 1.89 KB

Build Status NPM version

cfn-modules: AWS Lambda event source: webhook

Webhook event source for AWS Lambda function with alerting.

Install

Install Node.js and npm first!

npm i @cfn-modules/lambda-event-source-webhook

Usage

---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
  EventSource:
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      Parameters:
        LambdaModule: !GetAtt 'Lambda.Outputs.StackName' # required
        AlertingModule: !GetAtt 'Alerting.Outputs.StackName' # optional
        HttpMethod: 'ANY' # optional
      TemplateURL: './node_modules/@cfn-modules/lambda-event-source-webhook/module.yml'

Parameters

Name Description Default Required? Allowed values
LambdaModule Stack name of lambda-function module yes
AlertingModule Stack name of alerting module no
HttpMethod The HTTP method that clients use to call this method ANY no [ANY, GET, HEAD, POST, PUT, DELETE, OPTIONS]