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.
yarn build
compile typescript to jsyarn watch
watch for changes and compileyarn test
perform unit testsyarn cdk deploy
deploy this stack to your default AWS account/regionyarn cdk diff
compare deployed stack with current stateyarn 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