google::acl

Example

google::bucket 'acl-bucket'
    name: 'acl-example'
    location: 'US-CENTRAL1'
end

google::acl 'acl-one'
   bucket: $(google::bucket acl-bucket)
   entity: 'domain-brightspot.com'
   role: 'OWNER'
end

google::acl 'acl-two'
   bucket: $(google::bucket acl-bucket)
   entity: 'domain-sample.com'
   role: 'READER'
end

Attributes

Attribute Description
bucket The associated Bucket. (Required)
role The access permission for the entity. Valid values are OWNER, READER or WRITER. (Required)
entity The entity holding the permission, in one of the following forms user-<userId>, user-<email>, group-<groupId>, group-<email>, domain-<domain>, project-<team-projectId>, allUsers, or allAuthenticatedUsers. (Required)
user-project The project to be billed for this request.

Outputs

Attribute Description
domain The domain associated with the entity.
id Unique ID for the resource.
self-link The link to this access-control entry.
email The email address associated with the entity.
entity-id The ID for the entity.