This repo contains Terraform resource module for creating Cloud Scheduler on Google Cloud Platform for setting up cron jobs.
This module is available in Datatonic Terraform Registry
- install pre-commit:
brew install pre-commit. - install the git hook scripts:
pre-commit install.
You can go to the examples folder for module usage, the usage of the resource modules could be like this in your own main.tf file:
| Name | Version |
|---|---|
| terraform | =0.14.9 |
| 3.66.1 | |
| google-beta | 3.66.1 |
No provider.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| cloud_schduler_config | Map of configs for the scheduler. | any |
n/a | yes |
| environment | The GCP envioment where the scheduler will be created. | string |
n/a | yes |
| project_id | (Required) The ID of the project where the cloud scheduler will be created. | string |
n/a | yes |
| region | Region where the scheduler job resides. | any |
n/a | yes |
No output.
When committing code, use Commitizen. This then allows us to setup semantic versioning using Semantic Release in CICD pipeline.
To install commitizen:
npm install -g commitizenFrom now on, when commiting code, instead of git commit, run cz -s