Update gcp.mdx (#13438)

Updated the example for oauth.  In my testing I had to use the project-id for both the project attribute as well as within the bindings attribute.
This commit is contained in:
Ray Ryjewski
2022-02-09 15:09:01 -05:00
committed by GitHub
parent 2741e17f31
commit 9560353cda

View File

@@ -109,11 +109,11 @@ To configure a roleset that generates OAuth2 access tokens (preferred):
```text
$ vault write gcp/roleset/my-token-roleset \
project="my-project" \
project="my-project-id" \
secret_type="access_token" \
token_scopes="https://www.googleapis.com/auth/cloud-platform" \
bindings=-<<EOF
resource "//cloudresourcemanager.googleapis.com/projects/my-project" {
resource "//cloudresourcemanager.googleapis.com/projects/my-project-id" {
roles = ["roles/viewer"]
}
EOF