A cloud carbon aware scheduler using the carbon aware sdk
First export the following environment variables:
export TF_VAR_region=<your gcp region>
export TF_VAR_project_id=<your gcp project id>
Then run the following commands:
terraform init
terraform plan
terraform apply
First export the following environment variables:
export CARBON_AWARE_TASK_BUCKET=<your gcp bucket>
export CARBON_AWARE_PUBSUB_SUBSCRIPTION=<your gcp pubsub subscription>
export GCP_PROJECT_ID=<your gcp project id>
We wrote a simple dockerfile to build the image and an earthfile to push it to the registry.
earthly --platform=linux/amd64 --push +build --REGISTRY_REPOSITORY=<your gcp registry repository>