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)
cache-mode
Specifies the cache mode for all responses from this backend bucket. Defaults to CACHE_ALL_STATIC. Valid values are CACHE_ALL_STATIC, FORCE_CACHE_ALL or USE_ORIGIN_HEADERS.
cache-key-policy subresource

Specifies the cache key configuration.

include-http-headers list
Headers to include in cache keys according to include_http_headers.
query-string-whitelist list
Names of query string parameters to include in cache keys.
bypass-cache-on-request-header list subresource

Specifies a list of request headers that will be used to bypass cache.

header-name
The header name to match on when bypassing cache. (Required)
negative-caching
Specifies whether to follow redirects from the origin. Defaults to false.
negative-caching-policy list subresource

Specifies the negative caching configuration. Can only be set if negative-caching is set to true. Can only be set if negative-caching is set.

code
The HTTP status code to define custom set of rules. Valid values are 300.0, 301.0, 302.0, 307.0, 308.0, 404.0, 405.0, 410.0, 421.0, 451.0 or ``501.0`. (Required)
ttl
The TTL for the negative response. (Required)
client-ttl
Specifies the TTL for cached content served to clients. Defaults to 0.
default-ttl
Specifies the TTL for cached responses served to clients that do not send a max-age, min-fresh, or s-max-age directive. Defaults to 0.
max-ttl
Specifies the maximum allowed TTL for cached content served to clients. Defaults to 0.
request-coalescing
Specifies whether to enable coalescing of multiple concurrent cache-fill requests into a single request. Defaults to false.
serve-while-stale
Specifies the number of seconds to serve the content without contacting the origin. Defaults to 0.
signed-url-key list Signed Url key configuration for the backend bucket.
security-policy The security policy associated with this backend bucket.

Outputs

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