Loading...
Loading...
Manage the full lifecycle of ADBPG Supabase projects. Use for listing/querying projects, create, pause/resume, reset password, API Keys, and security IP management. Triggers: "Supabase", "supabase project", "spb-xxx", "ADBPG Supabase"
npx skill4agent add aliyun/alibabacloud-aiops-skills alibabacloud-analyticdb-postgresql-supabase-opsADBPG (AnalyticDB PostgreSQL) + Supabase + VPC + VSwitchaliyun gpdbsupabasesupabase loginsupabase projects listaliyun gpdb …--user-agent AlibabaCloud-Agent-Skillsspb-ProjectIdspb-spb-2zen7c8752x12328--project-idlist-supabase-projects--biz-region-idProjectNameProjectIdPre-check: Aliyun CLI >= 3.3.1 required Runto verify >= 3.3.1. If not installed or version too low, see references/cli-installation-guide.md for installation instructions. Then [MUST] runaliyun versionto enable automatic plugin installation.aliyun configure set --auto-plugin-install true
Pre-check: Alibaba Cloud Credentials RequiredSecurity Rules:
- NEVER read, echo, or print AK/SK values (e.g.,
is FORBIDDEN)echo $ALIBABA_CLOUD_ACCESS_KEY_ID- NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
with literal credential valuesaliyun configure set- ONLY use
to check credential statusaliyun configure listbashaliyun configure listCheck the output for a valid profile (AK, STS, or OAuth identity).If no valid profile exists, STOP here.
- Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
in terminal or environment variables in shell profile)aliyun configure- Return and re-run after
shows a valid profilealiyun configure list
ram-permission-diagnosereferences/ram-policies.mdIMPORTANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., RegionId, ProjectId, instance names, CIDR blocks, passwords, VPC/VSwitch IDs, etc.) MUST be confirmed with the user. For create, the skill supplies recommended defaults (and optional auto-discovery). You must present that full plan and obtain explicit user approval (or replaced values) before running.create-supabase-project
aliyun gpdb list-supabase-projectsaliyun gpdb get-supabase-projectget-supabase-project-api-keysget-supabase-project-dashboard-accountaliyun vpc describe-vpcsaliyun vpc describe-vswitchesaliyun gpdb describe-regionsproject-idget-supabase-project| Parameter | Required/Optional | Description | Default / recommendation |
|---|---|---|---|
| ProjectId | Required (non-create) | Instance ID from API/list ( | — |
| BizRegionId | Optional (create) | Region ID ( | |
| ProjectName | Required (create) | Project name | Derive from user scenario; user may replace |
| ZoneId | Required (create) | Availability zone ID | |
| VpcId | Required (create) | VPC ID | User input or from discovery (see Create Project) |
| VSwitchId | Required (create) | VSwitch ID (must match | User input or recommend max |
| AccountPassword | Required (create) / reset | Database password | User input or generate per API rules; user may replace |
| SecurityIPList | Required (create) / modify | IP whitelist | |
| ProjectSpec | Required (create) | Instance spec | |
| StorageSize | Optional (create) | Storage (GB) | |
| DiskPerformanceLevel | Optional (create) | PL0 / PL1 | |
| PayType / UsedTime / Period | Optional (create) | Billing | |
| ClientToken | Optional (create) | Idempotency | Omit unless user retries same create |
Timeout Settings
- Default CLI read timeout is often ~60 seconds per HTTP read — usually enough for
, because creation is asynchronous: the API accepts the request and returnscreate-supabase-projectquickly; it does not block until the instance is ready.ProjectId- 3–5 minutes is the typical time for background provisioning to finish — not the duration of the create HTTP response. Use Success Verification (poll
untilget-supabase-projectisStatus) to wait for that phase.running- Create success criterion: after
returnscreate-supabase-project, the instance is not ready untilProjectIdreportsget-supabase-project=Status(API uses lowercase) — that state means provisioning succeeded and the project is usable.running- If any command hits read timeouts in practice, raise
for that call (e.g.--read-timeout).--read-timeout 120
aliyun gpdb <command>--user-agent AlibabaCloud-Agent-Skillsaliyun gpdb list-supabase-projects \
--biz-region-id cn-beijing \
--max-results 20 \
--user-agent AlibabaCloud-Agent-Skillsaliyun gpdb get-supabase-project \
--project-id spb-xxxxx \
--user-agent AlibabaCloud-Agent-Skillsaliyun gpdb get-supabase-project-api-keys \
--project-id spb-xxxxx \
--user-agent AlibabaCloud-Agent-Skillsget-supabase-project-api-keysaliyun gpdb get-supabase-project-dashboard-account \
--project-id spb-xxxxx \
--user-agent AlibabaCloud-Agent-Skillscn-beijingcn-beijing-iscripts/generate-project-name.shscripts/generate-password.pyscripts/discover-vswitch.sh --biz-region-id <region> --zone-id <zone>127.0.0.12C2G20POSTPAYPL0=== Create Supabase Project Plan ===
Project Name: <generated-or-user-confirmed>
Region: <biz-region-id>
Zone: <zone-id>
VPC: <vpc-id from discovery>
VSwitch: <vswitch-id from discovery> (Available IPs: <count>)
Instance Spec: 2C2G
Storage: 20 GB
Pay Type: POSTPAY
Security IP: 127.0.0.1
Password: <generated, shown once or masked>
=================================
Select an option:
1. Confirm and create (default)
2. Modify parameters
3. Cancel
Press Enter for [1], or type option number:aliyun gpdb create-supabase-project \
--biz-region-id <BizRegionId> \
--zone-id <ZoneId> \
--project-name <ProjectName> \
--account-password ‘<Password>’ \
--security-ip-list "127.0.0.1" \
--vpc-id <VpcId> \
--vswitch-id <VSwitchId> \
--project-spec 2C2G \
--storage-size 20 \
--disk-performance-level PL0 \
--pay-type POSTPAY \
--client-token "<ClientToken>" \
--user-agent AlibabaCloud-Agent-SkillsProjectId--client-tokenProjectIdServiceUnavailableVSwitchIp.NotEnoughProjectIdget-supabase-projectlist-supabase-projectsProjectName# CLIENT_TOKEN: generate once (e.g. uuidgen) before first attempt; reuse on safe create retries.
aliyun gpdb create-supabase-project \
--biz-region-id cn-beijing \
--zone-id cn-beijing-i \
--project-name my_supabase \
--account-password '<user-or-generated>' \
--security-ip-list "127.0.0.1" \
--vpc-id vpc-xxxxx \
--vswitch-id vsw-xxxxx \
--project-spec 2C2G \
--storage-size 20 \
--disk-performance-level PL0 \
--pay-type POSTPAY \
--client-token "$CLIENT_TOKEN" \
--user-agent AlibabaCloud-Agent-Skills!@#$%^&*()_+-=_aliyun gpdb pause-supabase-project \
--project-id spb-xxxxx \
--user-agent AlibabaCloud-Agent-Skillsaliyun gpdb resume-supabase-project \
--project-id spb-xxxxx \
--user-agent AlibabaCloud-Agent-Skillsaliyun gpdb reset-supabase-project-password \
--project-id spb-xxxxx \
--account-password 'NewPass456!' \
--user-agent AlibabaCloud-Agent-Skillsaliyun gpdb modify-supabase-project-security-ips \
--project-id spb-xxxxx \
--security-ip-list "10.0.0.1,10.0.0.2/24" \
--user-agent AlibabaCloud-Agent-Skillscreate-supabase-projectProjectIdspb---client-tokenrunningget-supabase-projectStatusStatusrunningPROJECT_ID="spb-xxxxx"
STATUS=""
MAX_PRIMARY=20
SLEEP=30
for attempt in $(seq 1 "$MAX_PRIMARY"); do
RAW=""
for inner in 1 2 3; do
RAW=$(aliyun gpdb get-supabase-project \
--project-id "$PROJECT_ID" \
--read-timeout 90 \
--user-agent AlibabaCloud-Agent-Skills \
2>/dev/null) && break
sleep 5
done
STATUS=$(echo "$RAW" | jq -r '.Status // empty')
[ "$STATUS" = "running" ] && break
sleep "$SLEEP"
done
# Optional: extend with user consent +10 polls if still provisioning
[ "$STATUS" = "running" ] || exit 1jqStatus| Operation | Verify with | Success hint |
|---|---|---|
| List | | |
| Get / API keys / dashboard | matching | Expected fields in JSON, no error code |
| Pause / resume | | |
| Reset password / modify IPs | | Whitelist or success response as applicable; password change is also validated by reconnecting (see reference doc) |
vpc describe-vswitchesvpc describe-vpcsProjectIdspb-…list-supabase-projectssupabasealiyun gpdb--user-agent AlibabaCloud-Agent-Skills| Document | Description |
|---|---|
| references/cli-installation-guide.md | CLI Installation Guide |
| references/ram-policies.md | RAM Permission Requirements |
| references/related-apis.md | Related API List |
| references/verification-method.md | Operation Verification Methods |
| references/acceptance-criteria.md | Acceptance Criteria |
| references/create-supabase-project-parameters.md | Create API parameters, defaults, VPC/VSwitch discovery |