Create a GCS bucket or update if it already exists.

yaml
type: "io.kestra.plugin.gcp.gcs.CreateBucket"

Create a new bucket with some options

yaml
id: gcp_gcs_create_bucket
namespace: company.team

tasks:
  - id: create_bucket
    type: io.kestra.plugin.gcp.gcs.CreateBucket
    name: "my-bucket"
    versioningEnabled: true
    labels:
      my-label: my-value
Properties

Bucket's unique name

The bucket's access control configuration

Definitions
entity*Required
type*Requiredstring
Possible Values
DOMAINGROUPUSER
value*Requiredstring
role*Requiredstring
Possible Values
READERWRITEROWNER

The bucket's Cross-Origin Resource Sharing (CORS) configuration

Definitions
maxAgeSecondsinteger
methodsarray
SubTypestring
Possible Values
GETHEADPUTPOSTDELETEOPTIONS
originsarray
valuestring
responseHeadersarray
SubTypestring

The default access control configuration

The access control configuration to apply to bucket's blobs when no other configuration is specified. See About Access Control Lists

Definitions
entity*Required

The entity

type*Requiredstring
Possible Values
DOMAINGROUPUSER

The type of the entity (USER, GROUP or DOMAIN)

value*Requiredstring

The value for the entity (ex : user email if the type is USER ...)

role*Requiredstring
Possible Values
READERWRITEROWNER

The role to assign to the entity

The default event-based hold for this bucket

The default Cloud KMS key name for this bucket

The Bucket's IAM Configuration

Definitions
publicAccessPreventionstring
Possible Values
ENFORCEDUNSPECIFIEDUNKNOWNINHERITED
uniformBucketLevelAccessEnabledboolean
DefaultERROR
Possible Values
ERRORUPDATESKIP

Policy to apply if a bucket already exists.

The GCP service account to impersonate.

The bucket's website index page

Behaves as the bucket's directory index where missing blobs are treated as potential directories.

SubTypestring

The labels of this bucket

The bucket's lifecycle configuration

This configuration is expressed as a number of lifecycle rules, consisting of an action and a condition. See Object Lifecycle Management Only the age condition is supported. Only the delete and SetStorageClass actions are supported

Definitions
action*Required

The action to take when a lifecycle condition is met

type*Requiredstring
Possible Values
DELETESET_STORAGE_CLASS

The type of the action (DELETE ...)

valuestring

The value for the action (if any)

condition*Required

The condition

age*Requiredintegerstring

The Age condition is satisfied when an object reaches the specified age (in days). Age is measured from the object's creation time.

Data for blobs in the bucket resides in physical storage within this region. A list of supported values is available here.

The bucket's logging configuration

This configuration defines the destination bucket and optional name prefix for the current bucket's logs.

Definitions
logBucketstring
logObjectPrefixstring

The custom object to return when a requested resource is not found

The GCP project ID.

Whether the requester pays or not.

Whether a user accessing the bucket or an object it contains should assume the transit costs related to the access.

Retention period

If policy is not locked this value can be cleared, increased, and decreased. If policy is locked the retention period can only be increased.

SubTypestring
Default["https://www.googleapis.com/auth/cloud-platform"]

The GCP scopes to be used.

The GCP service account.

Possible Values
REGIONALMULTI_REGIONALNEARLINECOLDLINESTANDARDARCHIVEDURABLE_REDUCED_AVAILABILITY

The bucket's storage class

This defines how blobs in the bucket are stored and determines the SLA and the cost of storage. A list of supported values is available here.

Whether versioning should be enabled for this bucket

When set to true, versioning is fully enabled.

The bucket's info

Definitions
indexPagestring

The bucket's website index page.

locationstring

The bucket's location

namestring

The bucket's unique name

notFoundPagestring

The custom object to return when a requested resource is not found.

uristring
Formaturi

The bucket's URI.

Defaultfalse

If the bucket was created.

Defaultfalse

If the bucket was updated.