mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 06:01:08 +01:00
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:
parent
2741e17f31
commit
9560353cda
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user