AlloyDB Basics
AlloyDB for PostgreSQL is a managed, PostgreSQL-compatible database service
designed for enterprise-grade performance and availability. It utilizes a
disaggregated compute and storage architecture to scale resources independently.
It also provides AlloyDB AI, a collection of features that includes AI-powered
search (vector, hybrid search, and AI functions), natural language capabilities,
conversational analytics, and inference features like forecasting and model
endpoint management to help developers build AI apps faster.
Quick Start
Enable the AlloyDB API:
gcloud services enable alloydb.googleapis.com
Create a Cluster:
gcloud alloydb clusters create my-cluster --region=us-central1 \
--password=my-password --network=my-vpc
Note: For production, we recommend using IAM database authentication
instead of passwords. If passwords must be used, use secure secret
management (e.g., Secret Manager) instead of passing passwords in
cleartext.
Create a Primary Instance:
gcloud alloydb instances create my-primary --cluster=my-cluster \
--region=us-central1 --instance-type=PRIMARY --cpu-count=2
Reference Directory
Core Concepts: Architecture, disaggregated
storage, and performance features.
CLI Usage: Essential gcloud alloydb commands
for cluster and instance management.
Client Libraries & Connectors:
Connecting to AlloyDB using Python, Java, Node.js, and Go.
MCP Usage: Using the AlloyDB remote MCP server
and Gemini CLI extension.
Infrastructure as Code: Terraform
configuration and deployment examples.
IAM & Security: Predefined roles, service
agents, and database authentication.
If you need product information not found in these references, use the
Developer Knowledge MCP server search_documents tool.
Source: google/skills — distributed by TomeVault.
1---2name: google-skills-alloydb-basics3description: AlloyDB Basics4---56# AlloyDB Basics78AlloyDB for PostgreSQL is a managed, PostgreSQL-compatible database service9designed for enterprise-grade performance and availability. It utilizes a10disaggregated compute and storage architecture to scale resources independently.11It also provides AlloyDB AI, a collection of features that includes AI-powered12search (vector, hybrid search, and AI functions), natural language capabilities,13conversational analytics, and inference features like forecasting and model14endpoint management to help developers build AI apps faster.1516## Quick Start17181. **Enable the AlloyDB API:**1920 ```bash21 gcloud services enable alloydb.googleapis.com22 ```23242. **Create a Cluster:**2526 ```bash27 gcloud alloydb clusters create my-cluster --region=us-central1 \28 --password=my-password --network=my-vpc29 ```3031 *Note: For production, we recommend using IAM database authentication32 instead of passwords. If passwords must be used, use secure secret33 management (e.g., Secret Manager) instead of passing passwords in34 cleartext.*35363. **Create a Primary Instance:**3738 ```bash39 gcloud alloydb instances create my-primary --cluster=my-cluster \40 --region=us-central1 --instance-type=PRIMARY --cpu-count=241 ```4243## Reference Directory4445- [Core Concepts](references/core-concepts.md): Architecture, disaggregated46 storage, and performance features.4748- [CLI Usage](references/cli-usage.md): Essential `gcloud alloydb` commands49 for cluster and instance management.5051- [Client Libraries & Connectors](references/client-library-usage.md):52 Connecting to AlloyDB using Python, Java, Node.js, and Go.5354- [MCP Usage](references/mcp-usage.md): Using the AlloyDB remote MCP server55 and Gemini CLI extension.5657- [Infrastructure as Code](references/iac-usage.md): Terraform58 configuration and deployment examples.5960- [IAM & Security](references/iam-security.md): Predefined roles, service61 agents, and database authentication.6263*If you need product information not found in these references, use the64 Developer Knowledge MCP server `search_documents` tool.*6566---67> Source: [google/skills](https://github.com/google/skills) — distributed by [TomeVault](https://tomevault.io).68<!-- tomevault:4.0:skill_md:2026-05-01 -->