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
2.9 KiB
2.9 KiB
title, type, weight, description
| title | type | weight | description |
|---|---|---|---|
| alloydb-create-cluster | docs | 1 | The "alloydb-create-cluster" tool creates a new AlloyDB for PostgreSQL cluster in a specified project and location. |
About
The alloydb-create-cluster tool creates a new AlloyDB for PostgreSQL cluster
in a specified project and location.
This tool provisions a cluster with a private IP address within the specified VPC network.
Permissions & APIs Required: Before using, ensure the following on your GCP project:
-
The AlloyDB API is enabled.
-
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 will be created. | Yes |
cluster |
string | A unique identifier for the new AlloyDB cluster. | Yes |
password |
string | A secure password for the initial user. | Yes |
location |
string | The GCP location where the cluster will be created. Default: us-central1. If quota is exhausted then use other regions. |
No |
network |
string | The name of the VPC network to connect the cluster to. Default: default. |
No |
user |
string | The name for the initial superuser. Default: postgres. |
No |
Compatible Sources
{{< compatible-sources >}}
Example
kind: tool
name: create_cluster
type: alloydb-create-cluster
source: alloydb-admin-source
description: Use this tool to create a new AlloyDB cluster in a given project and location.
Reference
| field | type | required | description |
|---|---|---|---|
| type | string | true | Must be alloydb-create-cluster. |
| source | string | true | The name of an alloydb-admin source. |
| description | string | false | Description of the tool that is passed to the agent. |