Skip to content

Latest commit

 

History

History

eventbridge-lambda

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

EventBridge Rule scheduled Lambda


Stability: Stable

This is a stable example. It should successfully build out of the box

This example is built on Construct Libraries marked "Stable" and does not have any infrastructure prerequisites to build.


This example creates a new EventBridge rule that executes a Lambda function every minute. It sends an email via the lambda that calls an SNS topic.

Build

To build this example, you need to be in this example's root directory. Then run the following:

npm install -g aws-cdk
npm install
cdk synth

This will install the necessary CDK, then this example's dependencies, and then build the CloudFormation template. The resulting CloudFormation template will be in the cdk.out directory.

Deploy

Run cdk deploy --parameters email=<email_address> replacing <email_address> with a valid email address. This will deploy / redeploy the Stack to AWS and start sending email notifications to the address provided every 1 minute.

Useful commands

  • mvn package compile and run tests
  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation