Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 545 Bytes

File metadata and controls

21 lines (15 loc) · 545 Bytes

Lambda cron job example

# install dependencies
npm install

# set up AWS environment
export AWS_PROFILE=your-profile
export AWS_REGION=eu-central-1 # or any other region which you want to use

# bootstrap your account - just for the first time if not bootstrapped already
npm run cdk bootstrap 

# deploy the example
npm run cdk deploy

# remove all resources
npm run cdk destroy

In the app.ts you can find 3 schedulers. All of them are disabled by default. If you want to test the behaviour, please enable them and re-deploy.