Difference between revisions of "GCP: Resource.name.startsWith"
Jump to navigation
Jump to search
↑ https://cloud.google.com/iam/docs/conditions-overview
Line 6: | Line 6: | ||
[[resource.name]].extract('/instances/{name}').startsWith('dev-') | [[resource.name]].extract('/instances/{name}').startsWith('dev-') | ||
+ | |||
+ | Example from official documentation: <ref>https://cloud.google.com/iam/docs/conditions-overview</ref> | ||
resource.type == "storage.googleapis.com/Bucket" && | resource.type == "storage.googleapis.com/Bucket" && | ||
resource.name.startsWith("projects/_/buckets/exampleco-site-assets-") | resource.name.startsWith("projects/_/buckets/exampleco-site-assets-") | ||
− | |||
− | |||
Revision as of 11:07, 28 July 2022
uniform bucket-level access required
resource.type != 'compute.googleapis.com/Instance' || resource.name.extract('/instances/{name}').startsWith('dev-')
Example from official documentation: [1]
resource.type == "storage.googleapis.com/Bucket" && resource.name.startsWith("projects/_/buckets/exampleco-site-assets-")
Related
See also
gcloud projects [ set-iam-policy | get-iam-policy | add-iam-policy-binding ], resource.name.startsWith
Advertising: