Google Cloud Bigtable WriteRows

Google Cloud Bigtable WriteRows

Certified

Write rows to a Google Cloud Bigtable table

Writes one or more rows as a batch of mutations. Each row can set one or more cells (cells) and/or delete one or more cells (deleteCells) within the configured column family

yaml
type: io.kestra.plugin.gcp.bigtable.WriteRows

Write rows to Bigtable

yaml
id: bigtable_write_rows
namespace: company.team

inputs:
  - id: table_id
    type: STRING
    defaults: events

tasks:
  - id: write
    type: io.kestra.plugin.gcp.bigtable.WriteRows
    projectId: "{{ secret('GCP_PROJECT_ID') }}"
    instanceId: my-instance
    tableId: "{{ inputs.table_id }}"
    columnFamily: cf1
    rows:
      - rowKey: "row-001"
        cells:
          value: "42"

  - id: log
    type: io.kestra.plugin.core.log.Log
    message: "Written {{ outputs.write.rowCount }} rows to {{ inputs.table_id }}"

Set and delete cells on the same row

yaml
id: bigtable_write_rows_with_delete
namespace: company.team

tasks:
  - id: write
    type: io.kestra.plugin.gcp.bigtable.WriteRows
    projectId: "{{ secret('GCP_PROJECT_ID') }}"
    instanceId: my-instance
    tableId: events
    columnFamily: cf1
    rows:
      - rowKey: "row-001"
        cells:
          status: "processed"
        deleteCells:
          - stale_flag
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-gcp --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

Properties

The Bigtable instance ID

An instance is a container for your tables within a given GCP project.

The GCP project ID

The rows to write

Each row has a row key, a map of column qualifier to cell value to set, and an optional list of column qualifiers to delete

Definitions
rowKey*string

The row key

cellsobject
SubTypestring

Map of column qualifier to cell value to set on this row

columnFamilystring

The column family for this row

Overrides the task-level columnFamily if set

deleteCellsarray
SubTypestring

Column qualifiers to delete on this row

The Bigtable table ID to write to

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

Declares a dataset that a task writes outside of a database table, such as files in a data lake. system, location and format are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the dataset a task has written.

yaml
id: export_trips
namespace: company.data

tasks:
  - id: export
    type: io.kestra.plugin.core.log.Log
    message: Exporting trips
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.Dataset
          id: trips
          system: s3
          location: s3://company-lake/trips/
          format: parquet
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
formatstring

The format of the data, for example parquet or csv.

locationstring

Where the dataset is stored, for example a bucket prefix.

metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

systemstring

The system storing the dataset, for example s3 or gcs.

typeobject

Declares a deployment that groups the resources a flow provisions together. Other assets join a deployment by naming it in their partOf. A TtlTrigger targets deployments when no assetType is set.

Example

Register a deployment and the virtual machine it is made of.

yaml
id: provision_environment
namespace: company.infra

tasks:
  - id: provision
    type: io.kestra.plugin.core.log.Log
    message: Provisioning staging-eu
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.Deployment
          id: staging-eu
          displayName: Staging EU
        - type: io.kestra.plugin.ee.assets.VM
          id: staging-eu-web-01
          provider: aws
          region: eu-west-1
          partOf:
            id: staging-eu
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

typeobject

Declares a single file that a task writes to a storage system. system and path are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the file a task has uploaded.

yaml
id: upload_report
namespace: company.finance

tasks:
  - id: upload
    type: io.kestra.plugin.core.log.Log
    message: Uploading the monthly report
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.File
          id: monthly-report
          system: s3
          path: s3://company-reports/monthly.pdf
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

pathstring

The path or URI of the file.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

systemstring

The storage system holding the file, for example s3 or sftp.

typeobject

Declares a database table that a task creates or loads. system, database, schema and name are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the table a task has created.

yaml
id: create_orders_table
namespace: company.data

tasks:
  - id: create
    type: io.kestra.plugin.core.log.Log
    message: Creating analytics.public.orders
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.Table
          id: analytics.public.orders
          system: postgres
          database: analytics
          schema: public
          name: orders
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

databasestring

The database the table belongs to.

descriptionstring
displayNamestring
metadataobject
Default{}
namestring

The name of the table.

namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

schemastring

The schema the table belongs to.

systemstring

The database system, for example postgres, snowflake or bigquery.

typeobject

Declares a virtual machine that a task provisions or manages. provider, region and state are stored in the metadata of the asset, so they can be matched with metadataQuery on an asset trigger.

Example

Register the virtual machine a task has provisioned.

yaml
id: provision_vm
namespace: company.infra

tasks:
  - id: provision
    type: io.kestra.plugin.core.log.Log
    message: Provisioning web-01
    assets:
      outputs:
        - type: io.kestra.plugin.ee.assets.VM
          id: web-01
          displayName: Web server 01
          provider: aws
          region: eu-west-1
          state: running
id*string
Min length1
Max length150
assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

providerstring

The cloud provider or hypervisor hosting the virtual machine, for example aws, gcp or vsphere.

regionstring

The region or zone the virtual machine runs in.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

statestring

The state of the virtual machine, for example running or stopped.

typeobject
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

assetActionsarray
Max items100

The day-2 actions offered on this asset, each backing onto a flow.

Assets and flows are decoupled, and actions edited from the UI or the API are not written back to the flow. When assetActions is declared in a flow, the actions stored on the asset are replaced by the declared ones on each execution, and edits made from the UI or the API are overwritten. When it is omitted, the stored actions are kept. It's up to you to manage the actions of an asset either as code in the flow or from the UI and the API.

flowId*string
Min length1

The id of the flow backing this action.

namespace*string
Min length1

The namespace of the flow backing this action.

labelstring

The label displayed on this action.

whenarray
Max items20

The conditions under which this action is offered.

All conditions must hold, and an action without conditions is always offered. A field the resource does not have reads as null, so NOT_EQUAL_TO, NOT_IN and NOT_CONTAINS hold on it. A field is read as status, namespace or metadata.<key> on an asset.

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
partOf

The asset this one is part of.

At most one parent. Parent depth is limited by the service layer, not by this model.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

relatedarray
Max items50

Assets related to this one.

Declaration only: turned into RELATED relations when the asset is written, and not persisted on the asset by the platform.

id*string
Validation RegExp^[a-zA-Z0-9][a-zA-Z0-9._:-]*
Min length1
Max length150

The id of the referenced asset.

namespacestring
Validation RegExp^[a-z0-9][a-z0-9_-]*(\.[a-z0-9_-]+)*
Min length1
Max length150

The namespace of the referenced asset, informational: asset ids are unique per tenant.

rolestring
Max length100

The role this asset plays in the relation, for example primary or backup.

The column family to write cells into

Can be overridden per-row by setting columnFamily on an individual row entry

Bigtable emulator host (host: port), for local testing only

When set, the task connects to a local Bigtable emulator instead of the real Bigtable service, using plaintext transport and no credentials. Not intended for production use.

The GCP service account to impersonate

SubTypestring

The GCP scopes to be used

The GCP service account

Number of rows written

Unitrows

Number of rows written