A collection of useful scripts for managing GCP Cloud Scheduler jobs.
- create_cloud_scheduler_job - Creates a Cloud Scheduler job.
- delete_cloud_scheduler_jobs - Deletes Cloud Scheduler jobs.
- decribe_cloud_scheduler_jobs - Describes Cloud Scheduler jobs.
- force_run_cloud_scheduler_job - Forces a Cloud Scheduler job to run.
To download particular script, run the following command:
curl -O https://gist.githubusercontent.com/ajanderson1/ea8bf03cc54ec5d418cec7b0b3b9c868/raw/92473253b2e0b0211f7e1238ff5adbbe5e838f04/<script_name.sh>
or
FILE_URL="https://gist.githubusercontent.com/ajanderson1/ea8bf03cc54ec5d418cec7b0b3b9c868/raw/92473253b2e0b0211f7e1238ff5adbbe5e838f04/<script_name.sh>"
SCRIPT_NAME=$(basename "$FILE_URL") && curl -O "$FILE_URL" && chmod +x "$SCRIPT_NAME"
To run a script, run the following command:
./<script_name.sh>
or add to your PATH:
export PATH=$PATH:<path_to_script>
- gcloud command-line tool (https://cloud.google.com/sdk/gcloud/)
- jq command-line JSON processor (https://stedolan.github.io/jq/)
- tput command-line tool (https://linux.die.net/man/1/tput)