mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
add more gcp examples (#6358)
This commit is contained in:
parent
d61d5b1166
commit
d86b335228
1 changed files with 27 additions and 0 deletions
|
|
@ -188,6 +188,30 @@ resource "buckets/my-bucket" {
|
|||
"roles/storage.legacyBucketReader",
|
||||
]
|
||||
}
|
||||
|
||||
# At instance level, using self-link
|
||||
resource "https://www.googleapis.com/compute/v1/projects/my-project/zone/my-zone/instances/my-instance" {
|
||||
roles = [
|
||||
"roles/compute.instanceAdmin.v1"
|
||||
]
|
||||
}
|
||||
|
||||
# At project level
|
||||
resource "//cloudresourcemanager.googleapis.com/projects/my-project" {
|
||||
roles = [
|
||||
"roles/compute.instanceAdmin.v1",
|
||||
"roles/iam.serviceAccountUser", # required if managing instances that run as service accounts
|
||||
]
|
||||
}
|
||||
|
||||
# At folder level
|
||||
resource "//cloudresourcemanager.googleapis.com/folders/123456" {
|
||||
roles = [
|
||||
"roles/compute.viewer",
|
||||
"roles/deploymentmanager.viewer",
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
The top-level `resource` block defines the resource or resource path for which
|
||||
|
|
@ -213,6 +237,9 @@ few different formats:
|
|||
|
||||
# Pubsub snapshot
|
||||
//pubsub.googleapis.com/project/my-project/snapshots/my-pubsub-snapshot
|
||||
|
||||
# Resource manager
|
||||
//cloudresourcemanager.googleapis.com/projects/my-project"
|
||||
```
|
||||
|
||||
- **Relative resource name** - A path-noscheme URI path, usually as accepted by
|
||||
|
|
|
|||
Loading…
Reference in a new issue