3 ms·
It seems as though Google Batch does not have a native Terraform resource. The document in [1] seems like a workaround that leverages the Cloud Scheduler Terraf
by sojacobs7 3y ago
It seems as though Google Batch does not have a native Terraform resource. The document in [1] seems like a workaround that leverages the Cloud Scheduler Terraform resource, but submit a job using the JSON configuration. The various fields that can be used in the JSON are within [2]. Regarding using GCS there is an example in [3]. I found more samples in [4]
[2] https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs https://cloud.google.com/batch/docs/reference/rest/v1/projec...
[3] https://cloud.google.com/batch/docs/create-run-job-storage#use-bucket https://cloud.google.com/batch/docs/create-run-job-storage#u...
[4] https://github.com/GoogleCloudPlatform/batch-samples/tree/main/api-samples https://github.com/GoogleCloudPlatform/batch-samples/tree/ma...