Google Cloud CreateDatabase

Google Cloud CreateDatabase

Certified

Create a Spanner database

Creates a Spanner database with optional DDL statements.

yaml
type: io.kestra.plugin.gcp.spanner.CreateDatabase

Create a Spanner database with a table

yaml
id: spanner_create_database
namespace: company.team

tasks:
  - id: create_db
    type: io.kestra.plugin.gcp.spanner.CreateDatabase
    projectId: "{{ secret('GCP_PROJECT_ID') }}"
    instanceId: my-instance
    databaseId: my-database
    extraDdl:
      - |
        CREATE TABLE users (
          id INT64 NOT NULL,
          name STRING(256),
          age INT64
        ) PRIMARY KEY (id)
Properties

The Spanner database ID

The Spanner instance ID

The GCP project ID

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

When set, the task connects to a local Spanner emulator instead of the real Spanner service.

SubTypestring

Optional list of DDL statements to run upon creation

The GCP service account to impersonate

Reference (ref) of the pluginDefaults to apply to this task.

SubTypestring

The GCP scopes to be used

The GCP service account

The database name