terraform-google-modules / terraform-google-gcloud

Executes Google Cloud CLI commands within Terraform
https://registry.terraform.io/modules/terraform-google-modules/gcloud/google
Apache License 2.0
138 stars 93 forks source link

Add support for update command #148

Closed ego93 closed 1 year ago

ego93 commented 1 year ago

TL;DR

To have a update_cmd_body option when running commands that create can't be rerun when a resource already exists.

example use case: gcloud beta container backup-restore restore-plans ...

Terraform Resources

update_cmd_body

Detailed design

module "gcloud" {
  source  = "terraform-google-modules/gcloud/google"
  version = "~> 3.0"

  create_cmd_body  = "beta container backup-restore restore-plans create ..."
  update_cmd_body  = "beta container backup-restore restore-plans update ..."
  destroy_cmd_body = "beta container backup-restore restore-plans delete ..."

}

Additional information

No response

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days