terraform-linters / tflint-ruleset-google

TFLint ruleset for terraform-provider-google
Mozilla Public License 2.0
70 stars 19 forks source link

[proposal] Warn google_compute_instance_group without create_before_destroy #40

Open wata727 opened 4 years ago

wata727 commented 4 years ago

See https://www.terraform.io/docs/providers/google/r/compute_instance_group.html

Recreating an instance group that's in use by another resource will give a resourceInUseByAnotherResource error. You can avoid this error with a Terraform lifecycle block as outlined in the example below.

PatMyron commented 2 years ago

https://github.com/terraform-linters/tflint-ruleset-aws/pull/202

Same thoughts on this as https://github.com/terraform-linters/tflint-ruleset-google/issues/23#issuecomment-1027626936