Difference between revisions of "GCP: Resource.name.startsWith"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
  resource.type != 'compute.googleapis.com/Instance' ||
 
  resource.type != 'compute.googleapis.com/Instance' ||
 
   [[resource.name]].extract('/instances/{name}').startsWith('dev-')
 
   [[resource.name]].extract('/instances/{name}').startsWith('dev-')
 +
 +
resource.type == "storage.googleapis.com/Bucket" &&
 +
    resource.name.startsWith("projects/_/buckets/exampleco-site-assets-")
 +
Ref: https://cloud.google.com/iam/docs/conditions-overview
 +
  
  

Revision as of 11:05, 28 July 2022

uniform bucket-level access required

resource.type != 'compute.googleapis.com/Instance' ||
  resource.name.extract('/instances/{name}').startsWith('dev-')
resource.type == "storage.googleapis.com/Bucket" &&
   resource.name.startsWith("projects/_/buckets/exampleco-site-assets-")
Ref: https://cloud.google.com/iam/docs/conditions-overview


Related

See also

Advertising: