google::compute-backend-bucket

Creates a bucket backend.

Examples

 google::compute-backend-bucket gyro-backend-bucket-example
    name: 'gyro-backend-bucket-example'
    description: 'gyro-backend-bucket-example-desc'
    bucket: $(google::bucket bucket-example-backend-bucket)
    enable-cdn: false

    cdn-policy
        signed-url-max-age: 30000
    end

    signed-url-key
        key: "xyz"
        value: "ZWVsbG8gZnJvbSBHb29nbA=="
    end
end

Attributes

Attribute Description
bucket Cloud Storage bucket name. (Required)
description

An optional textual description of the resource; provided by the client when the resource is

created.

enable-cdn If true, enable Cloud CDN for this BackendBucket.
name The name of the backend bucket. Must be a string 1-63 characters long and the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Valid values satisfy the regex: [(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))]. (Required)
cdn-policy subresource

CDN configuration for this BackendBucket.

signed-url-max-age
Maximum number of seconds the response to a signed URL request will be considered fresh. (Required)
signed-url-key list Signed Url key configuration for the backend bucket.

Outputs

Attribute Description
self-link Server-defined URL for the resource.