hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.25k stars 1.7k forks source link

Update docs for using `google_project_service` to cover case where service account lacks permissions #18125

Open SarahFrench opened 1 month ago

SarahFrench commented 1 month ago

Community Note

Description

There's a guide here about use of google_project_service : https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/google_project_service

One of the problems with enabling the service usage API in projects by default (https://github.com/hashicorp/terraform-provider-google/issues/14174) is that users need to set user_project_override correctly. This avoids a situation where a project resource can become tainted by the API call to activate the service usage API failing due to lack of permissions.

One way to support that GH issue is to improve our existing guides and prevent users using it incorrectly.

The guide would need to cover concepts like:

New or Affected Resource(s)

Potential Terraform Configuration

N/A

References

b/343221059

SarahFrench commented 1 week ago

Here's another data point about where APIs need to be enabled: https://github.com/hashicorp/terraform-provider-google/issues/11255#issuecomment-2188681866