cloud-sql-mysql-create-instance

Create a Cloud SQL for MySQL instance.

The cloud-sql-mysql-create-instance tool creates a new Cloud SQL for MySQL instance in a specified Google Cloud project.

Info

This tool uses the cloud-sql-admin source.

Configuration

Here is an example of how to configure the cloud-sql-mysql-create-instance tool in your tools.yaml file:

sources:
  my-cloud-sql-admin-source:
    kind: cloud-sql-admin

tools:
  create_my_mysql_instance:
    kind: cloud-sql-mysql-create-instance
    source: my-cloud-sql-admin-source
    description: "Creates a MySQL 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 `MYSQL_8_4`. The agent should ask the user if they want to use a different version."

Parameters

The cloud-sql-mysql-create-instance tool has the following parameters:

fieldtyperequireddescription
projectstringtrueThe Google Cloud project ID.
namestringtrueThe name of the instance to create.
databaseVersionstringfalseThe database version for MySQL. If not specified, defaults to the latest available version (e.g., MYSQL_8_4).
rootPasswordstringtrueThe root password for the instance.
editionPresetstringfalseThe edition of the instance. Can be Production or Development. Defaults to Development.

Reference

fieldtyperequireddescription
kindstringtrueMust be cloud-sql-mysql-create-instance.
sourcestringtrueThe name of the cloud-sql-admin source to use for this tool.
descriptionstringfalseA description of the tool that is passed to the agent.