Operate Alibaba Cloud Flink VVP resources with a strict create/query scope through one wrapper script.
Always run operations through: bash
python scripts/instance_ops.py <command> [options]
Allowed commands: create, create_namespace, describe, describe_regions, describe_zones, describe_namespaces, list_tags
Out of scope: update/delete, Flink SQL/job runtime operations, and non-Flink services
Use this skill when prompts are about Flink instance/namespace lifecycle operations.
User intentCommandQuery all instances in a regiondescribe --region_id <REGION>Create instancecreate ... --confirmQuery namespaces under an instancedescribe_namespaces --region_id <REGION> --instance_id <ID>Create namespacecreate_namespace ... --confirmQuery supported regions/zonesdescribe_regions / describe_zones --region_id <REGION>Query tagslist_tags --region_id <REGION> --resource_type <TYPE> [--resource_ids ...]
create and create_namespace must include --confirm.create -> create_namespace flow, namespace must target the same newly created InstanceId unless user approves fallback.create_namespace, check instance status/resources and existing namespace allocation.SafetyCheckRequired or explicit --confirm evidence.create and create_namespace, overall status can be completed only when both create operations succeed.create_namespace fails due to insufficient resources, report it clearly and ask user to manually scale resources outside this skill scope.references/parameter-validation.md.--confirm is present before execution.For create: verify with describe --region_id <REGION>.
For create_namespace: verify with describe_namespaces --region_id <REGION> --instance_id <ID>.
Use up to 3 read checks with short backoff before concluding the create is not reflected yet.
For chained create -> create_namespace:
describe --region_id <REGION> on the same InstanceId every 30 secondsRUNNING, stop and provide next action (wait/retry later)failed/ not_ready, not completedInsufficientResources, ask user to manually scale the instance and retry laterreferences/README.mdreferences/quick-start.mdreferences/trigger-recognition-guide.mdreferences/core-execution-flow.mdreferences/command-templates.mdDocumentPurposereferences/parameter-validation.mdPre-execution validation checklistreferences/e2e-playbooks.mdComplete execution sequencesreferences/common-failures.mdTypical mistakes and fixesreferences/required-confirmation-model.mdConfirmation gate rulesreferences/instance-state-management.mdInstance state and readiness checksreferences/output-handling.mdOutput parsing and retry policyreferences/verification-method.mdVerification patterns after create/queryreferences/acceptance-criteria.mdCompletion checklist for normal operationsreferences/python-environment-setup.mdPython dependency and auth setupreferences/cli-installation-guide.mdAliyun CLI diagnostics setupreferences/ram-policies.mdRequired RAM permissionsreferences/related-apis.mdAPI and command mapping
All commands return JSON:
json
{
"success": true,
"operation": "<command>",
"confirmation_check": {
"required_flag": "--confirm",
"provided": true,
"status": "passed"
},
"data": {},
"request_id": "..."
}
confirmation_check appears on create operations and is used for auditable safety evidence.
Exit codes: 0 = success, 1 = error.