This projects demonstrates how to decarbonize your batch jobs. It utilizes API's to find the the best execution time window with minimal grid carbon intensity and combines it with serverless AWS services.
The infrastructure is deployed using AWS CDK.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform unit testsnpm run cdk deploy
deploy this stack to your default AWS account/regionnpm run cdk diff
compare deployed stack with current statenpm run cdk synth
emits the synthesized CloudFormation template
- An AWS account.
- An API key for https://carbon-aware-computing.com, see API-Docs
- Store API Key from Step 2 in your AWS accounts Parameter-Store with
type=SecureString
under the name/carbon-aware-computing/api-key