mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user