How to include `terraform` in `cloudbuild.yaml` file

Hey guys, i'd like to include `terraform` command in `cloudbuild.yaml` file steps to automate building infrastructure resources on Cloud Build trigger,

but `terraform` is not included in the cloud builders list https://github.com/GoogleCloudPlatform/cloud-builders

Is there any workarounds

 

 

0 2 554
2 REPLIES 2

Hi @Babbili,

Cloud Build and Cloud Storage have been the recommended approach to use Terraform on Google Cloud. You may want to check this official google documentation on Managing infrastructure as code with Terraform using Cloud Build. You'd have to configure Terraform to store state in a Cloud Storage bucket. Refer to the link for the steps.

Hope this helps.

 

hi

you can use community builder and get terraform for your Cloud Build

https://github.com/GoogleCloudPlatform/cloud-builders-community/tree/master/terraform