CreateBucketIamPolicy CreateBucketIamPolicy

type: "io.kestra.plugin.gcp.gcs.CreateBucketIamPolicy"

Add role on an existing bucket.

# Examples

Add role to a service account on a bucket

id: "create_bucket_iam_policy"
type: "io.kestra.plugin.gcp.gcs.CreateBucketIamPolicy"
name: "my-bucket"
member: "sa@project.iam.gserviceaccount.com"
role: "roles/storage.admin"

# Properties

# ifExists

  • Type: IfExists
  • Dynamic:
  • Required:
  • Default: SKIP

Policy to apply if a policy already exists.

# member

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Bucket's unique name

# name

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Bucket's unique name

# projectId

  • Type: string
  • Dynamic:
  • Required:

The GCP project id

# role

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

Bucket's unique name

# scopes

  • Type: array
  • SubType: string
  • Dynamic:
  • Required:
  • Default: [https://www.googleapis.com/auth/cloud-platform]

The GCP scopes to used

# serviceAccount

  • Type: string
  • Dynamic:
  • Required:

The GCP service account key

# Outputs

# bucket

  • Type: string

The bucket uri

# created

  • Type: boolean

If the binding was added, or already exist

# member

  • Type: string

The bucket uri

# role

  • Type: string

The bucket uri

# Definitions