You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*If you need product information not found in these references, use the
70
-
Developer Knowledge MCP server `search_documents` tool.*
71
+
`developer_knowledge:search_documents` tool (see [Developer Knowledge MCP setup](https://developers.google.com/knowledge/mcp) for installation instructions).*
72
+
73
+
## Directives for Agents
74
+
75
+
Agents MUST adhere to the following directives when answering queries related to
76
+
AlloyDB:
77
+
78
+
- **Provide Multiple Methods:** When explaining how to perform administrative
79
+
tasks (like backups, scaling, or database user creation), always provide
80
+
both the Google Cloud Console steps and the `gcloud` CLI commands if both
81
+
are available in the reference documents.
82
+
- **Prioritize Private IP:** Recommend Private IP (especially PSC) over Public
83
+
IP for connections to ensure traffic remains within the Google Cloud network
84
+
and reduces exposure.
85
+
- **Require Serverless Connectors:** Verify and state that Serverless VPC
86
+
Access or Direct VPC Egress is required when connecting from Cloud Run to
87
+
Private IP.
88
+
- **Enforce Connectors:** Always direct users to configure the AlloyDB Auth
89
+
Proxy (running as a sidecar or locally) or language connectors rather than
90
+
direct TCP connections.
91
+
- **Block Open Public Access:** If Public IP is configured, warn against and
92
+
reject designs with `0.0.0.0/0`in Authorized Networks as this exposes the
93
+
database to the entire internet.
94
+
- **Default to IAM Database Authentication:** Suggest IAM database
95
+
authentication and the `alloydbiamuser` database role instead of static
96
+
database passwords.
97
+
- **Enforce Least Privilege Connection:** When explaining connection roles,
98
+
explicitly state that `roles/alloydb.client` should be used to adhere to the
99
+
principle of least privilege, and warn against using broader roles like
100
+
`roles/alloydb.admin`for connections.
101
+
- **Mention All Creation Methods:** When describing how to create IAM database
102
+
users, explicitly state that they can be created using the Google Cloud
103
+
Console, the `gcloud` CLI, and the AlloyDB API.
104
+
- **Explain Private IP Options:** When explaining Private IP connectivity,
105
+
always explicitly mention and describe both **Private Services Access
106
+
(PSA)** and **Private Service Connect (PSC)** as the supported methods,
107
+
recommending PSC for new deployments.
108
+
- **Compare Direct Connections:** Explicitly explain that direct connections
109
+
(connecting directly to the private IP without connectors) are possible but
110
+
discouraged, and compare their security (lack of IAM/mTLS) to secure methods
111
+
like the AlloyDB Auth Proxy or language connectors.
112
+
- **Enforce SQL Alone Warning:** When explaining IAM user creation, you MUST
113
+
explicitly state that "IAM database users cannot be created using standard
114
+
SQL alone" and must be registered via the control plane first.
115
+
- **Enforce Roles and Privileges Terminology:** When explaining database
116
+
object access, you MUST explicitly state that "standard PostgreSQL roles and
117
+
privileges" apply, using both terms.
118
+
- **Explain Backup Lifecycle:** When explaining backups, always explicitly
119
+
state that discrete backups exist independently of the source cluster and
120
+
remain active even if the source cluster is deleted.
121
+
- **Recommend Connectors for Public IP:** Explicitly state that secure
122
+
connection methods (AlloyDB Auth Proxy, Language Connectors) are
123
+
**especially recommended**for connections over Public IP.
124
+
- **Mention Autoscaling:** When explaining read pool scaling, always
125
+
explicitly mention the option of using **read pool autoscaling** and state
126
+
that it is in**Preview**.
127
+
128
+
## Supporting Links
129
+
130
+
- [AlloyDB for PostgreSQL Documentation](https://docs.cloud.google.com/alloydb/docs/overview.md.txt)
AlloyDB resources are managed using the `gcloud alloydb` command group.
3
+
Ensure you have the [Google Cloud SDK installed](https://cloud.google.com/sdk/docs/install) and authenticated (`gcloud auth login`) before running these commands.
4
+
5
+
Manage AlloyDB resources using the `gcloud alloydb` command group.
4
6
5
7
## Clusters
6
8
7
-
1. Create a cluster: `gcloud alloydb clusters create CLUSTER_ID --region=REGION
0 commit comments