Skip to content

Commit d9fc265

Browse files
Add a warning about User ADCs for Cloud Identity Resources. (#4095) (#2587)
Signed-off-by: Modular Magician <[email protected]>
1 parent 7c60d6f commit d9fc265

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.changelog/4095.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

website/docs/r/cloud_identity_group.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ A Cloud Identity resource representing a Group.
2828
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.
2929

3030

31+
~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
32+
you must specify a `billing_project` and set `user_project_override` to true
33+
in the provider configuration. Otherwise the Cloud Identity API will return a 403 error.
34+
Your account must have the `serviceusage.services.use` permission on the
35+
`billing_project` you defined.
36+
3137
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
3238
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=cloud_identity_groups_basic&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
3339
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">

website/docs/r/cloud_identity_group_membership.html.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ A Membership defines a relationship between a Group and an entity belonging to t
2828
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.
2929

3030

31+
~> **Warning:** If you are using User ADCs (Application Default Credentials) with this resource,
32+
you must specify a `billing_project` and set `user_project_override` to true
33+
in the provider configuration. Otherwise the Cloud Identity API will return a 403 error.
34+
Your account must have the `serviceusage.services.use` permission on the
35+
`billing_project` you defined.
36+
3137
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
3238
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=cloud_identity_group_membership&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
3339
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">

0 commit comments

Comments
 (0)