CreateBucketIamPolicy
Add role on an existing GCS bucket.
yaml
type: "io.kestra.plugin.gcp.gcs.CreateBucketIamPolicy"
Examples
Add role to a service account on a bucket
yaml
id: gcp_gcs_create_bucket_iam_policy
namespace: company.team
tasks:
- id: create_bucket_iam_policy
type: io.kestra.plugin.gcp.gcs.CreateBucketIamPolicy
name: "my-bucket"
member: "[email protected]"
role: "roles/storage.admin"
Properties
member *Requiredstring
Bucket's unique name
name *Requiredstring
Bucket's unique name
role *Requiredstring
Bucket's unique name
ifExists string
Default
SKIP
Possible Values
ERROR
SKIP
Policy to apply if a policy already exists.
impersonatedServiceAccount string
The GCP service account to impersonate.
projectId string
The GCP project ID.
scopes array
SubType string
Default
["https://www.googleapis.com/auth/cloud-platform"]
The GCP scopes to be used.
serviceAccount string
The GCP service account.
Outputs
bucket string
The bucket uri
created boolean
If the binding was added, or already exist
member string
The bucket uri
role string
The bucket uri