Skip to content

Commit

Permalink
Update gcp.mdx (#13438)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brightblueray authored Feb 9, 2022
1 parent 2741e17 commit 9560353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/content/docs/secrets/gcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9560353

Please sign in to comment.