cloud-sql-postgres-create-instance Tool

Create a Cloud SQL for PostgreSQL instance.

About

The cloud-sql-postgres-create-instance tool creates a Cloud SQL for PostgreSQL instance using the Cloud SQL Admin API.

Compatible Sources

This tool can be used with the following database sources:

Source Name
Cloud SQL Admin Source

Example

kind: tools
name: create-sql-instance
type: cloud-sql-postgres-create-instance
source: cloud-sql-admin-source
description: "Creates a Postgres instance using `Production` and `Development` presets. For the `Development` template, it chooses a 2 vCPU, 16 GiB RAM, 100 GiB SSD configuration with Non-HA/zonal availability. For the `Production` template, it chooses an 8 vCPU, 64 GiB RAM, 250 GiB SSD configuration with HA/regional availability. The Enterprise Plus edition is used in both cases. The default database version is `POSTGRES_17`. The agent should ask the user if they want to use a different version."

Reference

Tool Configuration

fieldtyperequireddescription
typestringtrueMust be “cloud-sql-postgres-create-instance”.
sourcestringtrueThe name of the cloud-sql-admin source to use.
descriptionstringfalseA description of the tool.

Tool Inputs

parametertyperequireddescription
projectstringtrueThe project ID.
namestringtrueThe name of the instance.
databaseVersionstringfalseThe database version for Postgres. If not specified, defaults to the latest available version (e.g., POSTGRES_17).
rootPasswordstringtrueThe root password for the instance.
editionPresetstringfalseThe edition of the instance. Can be Production or Development. This determines the default machine type and availability. Defaults to Development.