Files
wehub-resource-sync e04ed9c211
CF: Deploy Dev Docs / deploy (push) Has been cancelled
Sync Labels / build (push) Has been cancelled
tests / unit tests (macos-latest) (push) Has been cancelled
tests / unit tests (windows-latest) (push) Has been cancelled
tests / unit tests (ubuntu-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:32:45 +08:00

3.0 KiB

title, type, weight, description
title type weight description
alloydb-create-instance docs 1 The "alloydb-create-instance" tool creates a new AlloyDB instance within a specified cluster.

About

The alloydb-create-instance tool creates a new AlloyDB instance (PRIMARY or READ_POOL) within a specified cluster. This tool provisions a new instance with a public IP address.

Permissions & APIs Required: Before using, ensure the following on your GCP project:

  1. The AlloyDB API is enabled.

  2. The user or service account executing the tool has one of the following IAM roles:

    • roles/alloydb.admin (the AlloyDB Admin predefined IAM role)
    • roles/owner (the Owner basic IAM role)
    • roles/editor (the Editor basic IAM role)

The tool takes the following input parameters:

Parameter Type Description Required
project string The GCP project ID where the cluster exists. Yes
location string The GCP location where the cluster exists (e.g., us-central1). Yes
cluster string The ID of the existing cluster to add this instance to. Yes
instance string A unique identifier for the new AlloyDB instance. Yes
instanceType string The type of instance. Valid values are: PRIMARY and READ_POOL. Default: PRIMARY No
displayName string An optional, user-friendly name for the instance. No
nodeCount int The number of nodes for a read pool. Required only if instanceType is READ_POOL. Default: 1 No

Note The tool sets the password.enforce_complexity database flag to on, requiring new database passwords to meet complexity rules.

Compatible Sources

{{< compatible-sources >}}

Example

kind: tool
name: create_instance
type: alloydb-create-instance
source: alloydb-admin-source
description: Use this tool to create a new AlloyDB instance within a specified cluster.

Reference

field type required description
type string true Must be alloydb-create-instance.
source string true The name of an alloydb-admin source.
description string false Description of the tool that is passed to the agent.