CreateBucket
Create a bucket or update if it already exists.
type: "io.kestra.plugin.gcp.gcs.CreateBucket"
Create a new bucket with some options
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
YES
Bucket's unique name
NO
The bucket's Cross-Origin Resource Sharing (CORS) configuration
NO
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
YES
YES
The default Cloud KMS key name for this bucket
NO
The Bucket's IAM Configuration
YES
ERROR
ERROR
UPDATE
SKIP
Policy to apply if a bucket already exists.
YES
The GCP service account to impersonate.
YES
The bucket's website index page
Behaves as the bucket's directory index where missing blobs are treated as potential directories.
YES
The labels of this bucket
NO
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
YES
The bucket's location
Data for blobs in the bucket resides in physical storage within this region. A list of supported values is available here.
NO
The bucket's logging configuration
This configuration defines the destination bucket and optional name prefix for the current bucket's logs.
YES
The custom object to return when a requested resource is not found
YES
The GCP project ID.
YES
YES
YES
["https://www.googleapis.com/auth/cloud-platform"]
The GCP scopes to be used.
YES
The GCP service account.
YES
REGIONAL
MULTI_REGIONAL
NEARLINE
COLDLINE
STANDARD
ARCHIVE
DURABLE_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.
YES
The bucket's info
false
If the bucket was created.
false
If the bucket was updated.
YES
NO
ENFORCED
UNSPECIFIED
UNKNOWN
INHERITED
NO
YES
The value for the entity (ex : user email if the type is USER ...)
NO
YES
The entity
YES
READER
WRITER
OWNER
The role to assign to the entity
YES
The action to take when a lifecycle condition is met
YES
The condition
YES
The value for the action (if any)
NO
NO
NO
The bucket's website index page.
NO
The bucket's location
NO
The bucket's unique name
NO
The custom object to return when a requested resource is not found.
NO
uri
The bucket's URI.