Alibabacloud Tech Solution Animation Creation Auto Deploy
|
- Skill ID
- aliyun/alibabacloud-aiops-skills/alibabacloud-tech-solution-animation-creation-auto-deploy
- Publisher
- aliyun
- Repository
- alibabacloud-aiops-skills
- Installs
- 0
- Files
- 13
- Synced
- Sep 23, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
aliyun/alibabacloud-aiops-skills/alibabacloud-tech-solution-animation-creation-auto-deployInstalls these files- SKILL.md
- references/acceptance-criteria.md
- references/cli-installation-guide.md
- references/ram-policies.md
- references/related-commands.md
- references/verification-method.md
- scripts/attach-policies.sh
- scripts/create-api-key.sh
- scripts/create-custom-domain.sh
- scripts/deploy-environment.sh
- scripts/poll-deploy-status.sh
- scripts/render-and-update.sh
- scripts/setup-role.sh
What this skill tells the agent
Build AI Animation Story Creation App — Auto Deploy
Automatically deploy the Alibaba Cloud "Build AI Animation Story Creation App" solution. Deployment stops once the application is accessible — the hands-on experience is left to the user.
Architecture: OSS Bucket + DashScope (Bailian API Key) + FC App (ComfyUI + WebUI — two functions deployed via Devs template) ---
Installation
Prerequisites (scripts/ runtime dependencies): | Dependency | Min Version | Check Command | Purpose | |-----------|-------------|---------------|---------| |bash| 4.0+ |bash --version| Script runtime | |aliyunCLI | >= 3.3.7 |aliyun version| Alibaba Cloud resource operations (3.3.7+ required forai-modesubcommand) | |python3| 3.6+ |python3 --version| JSON parsing | |curl| any |curl --version| HTTP API calls | If Aliyun CLI is not installed or version too low, seereferences/cli-installation-guide.mdfor installation instructions. Then [MUST] runaliyun configure set --auto-plugin-install trueto enable automatic plugin installation.
CLI Initialization (MUST run before Core Workflow)
Enable AI-Mode, set the dedicated User-Agent, and update plugins so all subsequent CLI calls are tagged correctly and run on the latest plugin versions:
aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy"
aliyun plugin updateAuthentication
Pre-check: Alibaba Cloud Credentials Required Security Rules: - NEVER read, echo, or print AK/SK values - NEVER ask the user to input AK/SK directly in the conversation or command line - NEVER usealiyun configure setwith literal credential values - ONLY usealiyun configure listto check credential status ``bash aliyun configure list`Check the output for a valid profile (AK, STS, or OAuth identity). **If no valid profile exists, STOP here.** 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) 2. Configure credentials **outside of this session** 3. Return and re-run afteraliyun configure list` shows a valid profile
RAM Policy
See references/ram-policies.md for full permission list.
Required system policies: AliyunFCFullAccess, AliyunOSSFullAccess
Additional permissions: Devs-related permissions (devs:CreateProject, devs:RenderServicesByTemplate, devs:UpdateEnvironment, devs:DeployEnvironment, devs:ListEnvironments, devs:GetEnvironment)
Before the Core Workflow, automatically check and attach required policies:
bash scripts/attach-policies.sh[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process: 1. Readreferences/ram-policies.mdto get the full list of permissions required by this SKILL 2. Useram-permission-diagnoseskill to guide the user through requesting the necessary permissions 3. Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
IMPORTANT: Parameter Confirmation — Before executing any command or API call, all parameters are either fixed values or auto-generated/created — no manual user input required.
| Parameter | Required | Description | Value |
|---|---|---|---|
RegionId | Yes | Deployment region (FC and OSS in the same region) | Fixed `cn-hangzhou` |
BUCKET_NAME | Yes | OSS Bucket name | Auto-generated animation-story-<6 random lowercase letters> |
API_KEY | Yes | Bailian (DashScope) API Key | Auto-created via aliyun modelstudio create-api-key |
PROJECT_NAME | Yes | Devs project name | Auto-generated animation-creation-<6 random lowercase letters> |
Before starting the Core Workflow, set the following variables in the shell (all subsequent commands reference them directly):
# Generate random names
BUCKET_NAME="animation-story-$(cat /dev/urandom | LC_ALL=C tr -dc 'a-z' | head -c 6)"
PROJECT_NAME="animation-creation-$(cat /dev/urandom | LC_ALL=C tr -dc 'a-z' | head -c 6)"
echo "BUCKET_NAME=$BUCKET_NAME, PROJECT_NAME=$PROJECT_NAME"Core Workflow
Step 1: Create Bailian API Key (CLI)
Automatically obtain the workspace and create an API Key via aliyun modelstudio CLI:
source scripts/create-api-key.shNote: Usesourceto ensure theAPI_KEYvariable is exported to the current shell. The script automatically fetches the default workspace (or creates one if none exists), creates an API Key, and prints the full value.
Step 2: Enable OSS Service and Create Bucket (CLI)
Note: The OSS CLI plugin uses the--uaflag (not--user-agent) to set the User-Agent.
First enable OSS service (returns ORDER.OPEND if already enabled — can be ignored):
aliyun ossadmin open-oss-service --endpoint oss-admin.aliyuncs.com --force --user-agent AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deploy 2>&1 || trueCreate Bucket:
aliyun oss mb "oss://$BUCKET_NAME" --region cn-hangzhou --ua AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deployVerify:
aliyun oss stat "oss://$BUCKET_NAME" --ua AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deployStep 3: Create Devs Project (CLI)
Use the CreateProject API to create a project. Specify the template name and parameters via templateConfig — Devs will automatically create a production environment.
Note: CreateProject only creates the project and an empty environment — it does NOT trigger deployment automatically. You must follow up with RenderServicesByTemplate + UpdateEnvironment + DeployEnvironment to complete deployment.
aliyun devs create-project --body "{
\"name\": \"$PROJECT_NAME\",
\"spec\": {
\"templateConfig\": {
\"templateName\": \"animation-creation\",
\"parameters\": {
\"region\": \"cn-hangzhou\",
\"bailian_api_key\": \"$API_KEY\",
\"ossBucket\": \"$BUCKET_NAME\"
}
}
}
}" --user-agent AlibabaCloud-Agent-Skills/alibabacloud-tech-solution-animation-creation-auto-deployTemplate parameter notes (confirmed — do not modify): -region: Fixedcn-hangzhou-bailian_api_key: Bailian API Key auto-created in Step 1 -ossBucket: OSS Bucket name created in Step 2 (withoutoss://prefix) - All parameters are passed viaparameters, notvariableValues
Step 4: Render Template and Configure Environment (CLI)
All commands in this step use shell variables `MY_UID`, `PROJECT_NAME`, `BUCKET_NAME`, `API_KEY` — make sure Step 1 and Parameter Confirmation have been executed.
First obtain the current user UID and check the role trust policy:
source scripts/setup-role.shNote: Usesourceto ensure theMY_UIDvariable is exported to the current shell. The script automatically checks whether the role exists and creates it if not. This role is the standard Devs role, typically auto-created when using the FC console's application feature for the first time.
4a. Render Template → Build JSON → Update Environment (all-in-one script)
The following script automatically: renders the template → filters out custom-domain → adds roleArn → calls UpdateEnvironment. The agent does not need to handle JSON manually.
bash scripts/render-and-update.shKey notes (built into the script — no manual handling needed): -custom-domainservice is automatically filtered out (causes "Unknown service type" error) -roleArnis automatically added - Uses--bodyto pass data (--speccannot correctly pass deeply nested JSON)
More from aliyun
Use this skill in a project
Open any RiverX project, search the Skills panel for aliyun/alibabacloud-aiops-skills/alibabacloud-tech-solution-animation-creation-auto-deploy, and install it in one click.
