@cfn-modules/lambda-event-source-cron

1.1.0 • Public • Published

Build Status NPM version

cfn-modules: AWS Lambda event source: cron

Cron event source for AWS Lambda function with alerting.

Install

Install Node.js and npm first!

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

Usage

---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
  Cron:
    Type: 'AWS::CloudFormation::Stack'
    Properties:
      Parameters:
        LambdaModule: !GetAtt 'Function.Outputs.StackName' # required
        AlertingModule: !GetAtt 'Alerting.Outputs.StackName' # optional
        ScheduleExpression: 'rate(1 day)' # optional
      TemplateURL: './node_modules/@cfn-modules/lambda-event-source-cron/module.yml'

Examples

Related modules

Parameters

Name Description Default Required? Allowed values
LambdaModule Stack name of lambda-function module yes
AlertingModule Stack name of alerting module no
ScheduleExpression The schedule or rate (frequency) that determines when CloudWatch Events runs the rule (for valid values, see ) rate(1 day) no valid values

Dependents (0)

Package Sidebar

Install

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

Weekly Downloads

2

Version

1.1.0

License

Apache-2.0

Unpacked Size

18.6 kB

Total Files

12

Last publish

Collaborators

  • andreaswittig
  • hellomichibye