streaming-data-to-analytics/cloudbuild_destroy.yaml (25 lines of code) (raw):

steps: - id: 'tf init' name: 'hashicorp/terraform:1.0.0' entrypoint: 'sh' args: - '-c' - | terraform init \ -backend-config="bucket=$PROJECT_ID-tf-state" \ -backend-config="prefix=streaming-data" dir: terraform - id: 'tf destroy' name: 'hashicorp/terraform:1.0.0' args: - destroy - -auto-approve dir: terraform options: env: - TF_VAR_project_id=$PROJECT_ID tags: - terraform - streaming-data - destroy timeout: 3600s