
Alibabacloud Emr Starrocks Manage
- 166 installs
- 208 repo stars
- Updated August 4, 2026
- aliyun/alibabacloud-aiops-skills
Operate EMR-hosted StarRocks clusters on Alibaba Cloud—resize nodes, tune configs, restart services, and validate OLAP health for analytics and reporting workloads.
About
alibabacloud-emr-starrocks-manage helps operators administer StarRocks on Alibaba EMR: cluster scaling, configuration updates, service restarts, and health validation for OLAP queries. It suits data teams maintaining production analytics warehouses who want agent-assisted, consistent procedures instead of ad hoc console clicking.
- EMR StarRocks cluster lifecycle actions
- OLAP capacity and configuration tuning
- Service health checks and recovery steps
- Warehouse-style analytics ops runbooks
- Alibaba Cloud EMR API/console guidance
Alibabacloud Emr Starrocks Manage by the numbers
- 166 all-time installs (skills.sh)
- Ranked #249 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-emr-starrocks-manageAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 166 |
|---|---|
| repo stars | ★ 208 |
| Last updated | August 4, 2026 |
| Repository | aliyun/alibabacloud-aiops-skills ↗ |
What it does
Operate EMR-hosted StarRocks clusters on Alibaba Cloud—resize nodes, tune configs, restart services, and validate OLAP health for analytics and reporting workloads.
Files
Alibaba Cloud EMR Serverless StarRocks Instance Full Lifecycle Management
Manage StarRocks instances via the aliyun CLI. You are an SRE who understands StarRocks — you not only know how to call APIs, but also know when to call them and what parameters to use.
Authentication
Reuse the profile already configured in the aliyun CLI. Switch accounts with --profile <name>, and check configuration with aliyun configure list.
Domain Knowledge
Product Overview
EMR Serverless StarRocks is a fully managed service of open-source StarRocks on Alibaba Cloud, providing a high-performance, fully managed real-time analytical database service.
Core Features:
- MPP Distributed Execution Framework: Massively parallel processing to boost query performance
- Fully Vectorized Engine: Columnar storage and vectorized computation for efficient analytical query processing
- Separated Storage and Compute: Supports separated storage-compute architecture for independent scaling of storage and compute resources
- CBO Optimizer: Cost-based query optimizer that automatically generates optimal execution plans
- Real-time Updatable Columnar Storage Engine: Supports real-time data ingestion and updates
- Intelligent Materialized Views: Automatically maintains materialized views to accelerate query performance
- Data Lake Analytics: Supports querying external data sources such as OSS and MaxCompute
Use Cases
- OLAP Multi-dimensional Analysis: Complex multi-dimensional data analysis, ad-hoc queries, report analysis
- Real-time Data Warehouse: Real-time data ingestion and processing, real-time reports and dashboards, real-time risk control and analytics
- High-concurrency Queries: High-concurrency point queries and short queries, online analytical processing, user behavior analysis
- Unified Analytics: Data lake analytics (querying OSS, MaxCompute, etc.), lakehouse architecture, cross-datasource federated queries
Core Concepts
| Concept | Description |
|---|---|
| StarRocks Instance | Each created StarRocks cluster (including multiple FE and multiple BE/CN nodes) is collectively called a StarRocks instance |
| CU (Compute Unit) | Unit of compute resources; the total compute resources needed for write and query operations in StarRocks are measured in CUs |
| Compute Group | A group of StarRocks compute nodes, containing node types such as FE, BE, and CN |
| FE (Frontend) | Frontend node, responsible for metadata management, client connection management, query planning, and query scheduling |
| BE (Backend) | Backend node, responsible for data storage and SQL execution (shared-nothing edition) |
| CN (Compute Node) | Compute node, a stateless node responsible for managing hot data cache, executing data import and query computation tasks (shared-data edition) |
| Shared-nothing | Data is stored on cloud disks or local disks; BE nodes handle both data storage and computation |
| Shared-data | Data is persistently stored in OSS object storage; CN nodes handle computation, and local disks are used for caching |
FE Node Roles:
- Leader: Primary node, responsible for metadata writes and cluster management
- Follower: Secondary node, synchronizes Leader metadata, can participate in elections
- Observer: Observer node, only synchronizes metadata, does not participate in elections, used to scale query concurrency
Instance Types
When creating an instance, you need to choose the architecture type:
| Architecture Type | RunMode Value | Node Composition | Data Storage | Data Disk Type | Use Cases |
|---|---|---|---|---|---|
| Shared-nothing Edition | shared_nothing | FE + BE | Cloud disk or local disk | ESSD cloud disk or local disk | OLAP multi-dimensional analysis, high-concurrency queries, real-time data analysis, latency-sensitive scenarios |
| Shared-data Edition | shared_data | FE + CN | OSS object storage | ESSD cloud disk (cache) | Highly cost-sensitive storage with relatively lower query efficiency requirements, such as data warehouse applications |
Shared-nothing Architecture Features:
- BE nodes handle both data storage and computation
- Data is stored on cloud disks or local disks
- Suitable for high-performance, low-latency OLAP scenarios
Shared-data Architecture Features:
- Data is persistently stored in OSS object storage
- CN nodes are stateless compute nodes; local disks are primarily used for caching hot data
- Compute and storage scale independently for better cost optimization
- Table type is identified as
CLOUD_NATIVE, with storage paths pointing to OSS
Compute Resource Specifications (CU)
CU (Compute Unit) is the compute resource unit for EMR Serverless StarRocks.
CU Specification Types:
| Spec Type | SpecType Value | Features | Use Cases |
|---|---|---|---|
| Standard | standard | Balanced compute and memory configuration | General OLAP analysis |
| Memory Enhanced | ramEnhanced | Higher memory ratio | Complex queries, high concurrency |
| Network Enhanced | networkEnhanced | Higher network bandwidth | External table analysis with large data scan volumes |
| High-performance Storage | localSSD | High-performance storage access | High I/O scenarios with strict storage I/O performance requirements |
| Large-scale Storage | bigData | Large capacity storage | Extremely large data volumes, cost-sensitive |
Note: The SpecType for FE node groups only supports standard. The multiple spec types above only apply to BE/CN node groups.Storage Specifications
| Storage Type | Performance Level | Max IOPS | Max Throughput | Use Cases |
|---|---|---|---|---|
| ESSD PL0 | Entry-level | 10,000 | 180 MB/s | Development and testing |
| ESSD PL1 | Standard | 50,000 | 350 MB/s | General production |
| ESSD PL2 | High-performance | 100,000 | 750 MB/s | High-performance requirements |
| ESSD PL3 | Ultra-performance | 1,000,000 | 4,000 MB/s | Ultra-performance requirements |
Billing Methods
Billing Items:
| Billing Item | Description | Billing Method |
|---|---|---|
| Compute Resources (CU) | Compute resources for FE and BE/CN nodes | Subscription / Pay-as-you-go |
| Storage Resources | Cloud disks, elastic temporary disks, data storage | Billed by actual usage |
| Backup Storage | Storage space occupied by data backups | Billed by actual usage |
Payment Methods:
| Payment Method | API Parameter Value (PayType) | Description |
|---|---|---|
| Pay-as-you-go | postPaid | Pay after use, billing generated hourly, suitable for short-term needs/testing |
| Subscription | prePaid | Pay before use, suitable for long-term needs, more cost-effective |
Payment Method Conversion:
- Subscription can be converted to pay-as-you-go (console feature)
- Pay-as-you-go cannot be converted to subscription (requires recreating the instance)
Cost Components:
Shared-nothing Edition Costs:
- FE compute resource cost (fixed 24 CU)
- BE compute resource cost (based on configured CU count)
- Storage cost (ESSD cloud disk or local disk)
Shared-data Edition Costs:
- FE compute resource cost (fixed 24 CU)
- CN compute resource cost (based on configured CU count)
- Storage cost (OSS object storage + ESSD cache disk)
Version Series
| Version Series | PackageType Value | Features | Use Cases | Spec Support | Region Restrictions |
|---|---|---|---|---|---|
| Standard Edition | official | Full functionality, production-grade stability, supports all spec types | Production environments, core business | Supports standard, memory enhanced, network enhanced, high-performance storage, large-scale storage | Available in all regions |
| Trial Edition | trial | Simplified configuration, quick start, only supports standard specs | Learning and testing, feature exploration, small applications | Only supports standard specs | Limited to certain regions (e.g., Beijing, Shanghai) |
Important:PackageTypemust be explicitly specified (officialortrial) when creating an instance; omitting it will cause creation failure.
Version Series Selection Recommendations:
- Development testing, learning experience: Choose Trial Edition
- Production environments, high-performance needs: Choose Standard Edition
Usage Limits
- Naming Limits: Instance name limited to a maximum of 64 characters, supports Chinese, letters, numbers, hyphens, and underscores
- Node Count Limits:
- FE nodes: 1-11 (odd numbers only)
- BE nodes: 3-50
- CN nodes: 1-100
Recommended Configurations
| Scenario | RunMode | PackageType | BE SpecType | CU Configuration | Other Recommendations |
|---|---|---|---|---|---|
| Development Testing / Trial | shared_data | trial | standard | 8 CU | Pay-as-you-go, quick start |
| Learning Validation | shared_data | trial | standard | 8-16 CU | Choose regions that support Trial Edition |
| Small-scale Production | shared_data | official | standard | 16-32 CU | Subscription is more cost-effective |
| High-performance OLAP | shared_nothing | official | ramEnhanced | As needed | ESSD PL2/PL3, 3-10 BE nodes |
| High-concurrency Queries | shared_nothing | official | localSSD | As needed | Local SSD storage |
| Massive Data Storage | shared_nothing | official | bigData | As needed | Local HDD, cost-optimized |
| Data Lake Analytics | shared_data | official | networkEnhanced | As needed | High bandwidth, external table scanning |
| Complex Query Analysis | shared_data | official | ramEnhanced | As needed | Large memory, multi-table joins |
Instance Creation Workflow
When creating an instance, the following steps must be followed to interact with the user. No confirmation step may be skipped:
1. Confirm Region: Ask the user for the target RegionId (e.g., cn-hangzhou, cn-beijing, cn-shanghai) 2. Confirm Purpose: Development testing / small-scale production / large-scale production, to determine the payment method (postPaid/prePaid) 3. Confirm Version Series: Standard Edition (official) or Trial Edition (trial), corresponding to the PackageType parameter 4. Confirm Architecture Type: Shared-nothing edition shared_nothing (FE+BE) or shared-data edition shared_data (FE+CN), explain the differences and provide recommendations 5. Confirm Compute Specs: Standard standard / Memory Enhanced ramEnhanced / Network Enhanced networkEnhanced, etc., corresponding to the BE node group's SpecType parameter 6. Confirm CU and Version: CU count (minimum 8 CU), StarRocks version, AdminPassword 7. Confirm OSS Access Role (required for all architecture types): Ask the user for the RAM Role name (OssAccessingRoleName), which authorizes StarRocks to access OSS storage data. Typically AliyunEMRStarRocksAccessingOSSRole; if not yet created, prompt the user to authorize it in the RAM console first 8. Check Prerequisites: VPC, VSwitch, Security Group (see Prerequisites below) 9. Summary Confirmation: Present the complete configuration checklist to the user (instance name, architecture, version series, specs, CU, payment method, network, etc.), and execute creation only after confirmation
Prerequisites
Before calling CreateInstanceV1, first confirm the target RegionId with the user, then check whether the following resources are ready.
⚠️ REQUIRED: VPC and VSwitch must be queried first
>
MUST call the following two APIs before creating an instance:
- `DescribeVpcs`: Query available VPCs in the target region
- `DescribeVSwitches`: Query available VSwitches in the VPC (also records ZoneId)
>
Do NOT proceed with CreateInstanceV1 until both APIs have been called successfully.export AGENT_USER_AGENT=AlibabaCloud-Agent-Skills # User-Agent identifier
aliyun configure list # Credentials
# ⚠️ REQUIRED APIs - must call before CreateInstanceV1:
aliyun vpc DescribeVpcs --RegionId <RegionId> # VPC (REQUIRED)
aliyun vpc DescribeVSwitches --RegionId <RegionId> --VpcId vpc-xxx # VSwitch (REQUIRED, record ZoneId)Key Parameters for the Creation API
When calling CreateInstanceV1, the following parameters are easily overlooked or confused — pay close attention:
- `Version`: The StarRocks version parameter name is `Version` (e.g.,
"Version": "3.3"). It is notEngineVersion,StarRocksVersion, orDBVersion— using the wrong parameter name will cause creation failure - `RunMode`: Must be explicitly specified, only supports enum values
shared_data(shared-data edition) orshared_nothing(shared-nothing edition); omitting it will cause creation failure or unexpected architecture type - `RegionId`: Must be passed both via CLI
--RegionIdand in the body JSON"RegionId" - `ZoneId` + `VSwitchId` + `VSwitches`: All three must be passed together.
ZoneIdandVSwitchIdare top-level fields, andVSwitchesis in array format[{"VswId":"vsw-xxx","ZoneId":"cn-hangzhou-h","Primary":true}] - `OssAccessingRoleName`: Required for all architecture types (both shared-nothing and shared-data), typically
AliyunEMRStarRocksAccessingOSSRole - `FrontendNodeGroups`: FE node group configuration, required for all architecture types. Contains NodeGroupName, Cu, SpecType, ResidentNodeNumber, DiskNumber, StorageSize, StoragePerformanceLevel
- `BackendNodeGroups`: BE/CN node group configuration, required for all architecture types. Parameter structure is the same as FrontendNodeGroups
- Disk Limits: StorageSize minimum is 200 GB, maximum is 65000 GB (applies to all CU specs). Upgrading disk performance level to pl2 requires disk >= 500 GB
Key Principle: Do not make decisions for the user — architecture type, spec type, CU count, etc. all require explicit inquiry and confirmation. Recommendations can be given, but the final choice is the user's.
CLI Invocation
User-Agent Setup
All aliyun CLI calls must set the User-Agent identifier via environment variable to identify the request source:
export AGENT_USER_AGENT=AlibabaCloud-Agent-SkillsExecute once at the beginning of the session; all subsequent aliyun commands will automatically carry this User-Agent. If it doesn't take effect, you can also set it inline before each command:
AGENT_USER_AGENT=AlibabaCloud-Agent-Skills aliyun starrocks <APIName> --InstanceId c-xxx --Target 32Invocation Guidelines
aliyun starrocks <APIName> --InstanceId c-xxx --Target 32- API version
2022-10-19, RPC style - Most APIs use named parameters (e.g.,
--InstanceId,--NodeGroupId,--Target), no--bodyneeded - Only
CreateInstanceV1andDescribeNodeGroupsuse--bodyJSON for parameter passing - Write operations should include
ClientTokenfor idempotency (see Idempotency rules below)
Idempotency
Agents may retry write operations due to timeouts, network jitter, etc. Retries without ClientToken may create duplicate resources.
| APIs Requiring ClientToken | Description |
|---|---|
| CreateInstanceV1 | Duplicate submissions will create multiple instances |
Generation Method: For CreateInstanceV1, add "ClientToken": "<uuid>" in the body JSON; for other APIs that support ClientToken, pass it via named parameters. Use the same token for retries of the same business operation.
Input Validation
Values provided by users (instance names, etc.) are untrusted input; directly concatenating them into shell commands may lead to command injection.
Protection Rules: 1. Prefer passing parameters via `--body` JSON — parameters passed as JSON string values naturally isolate shell metacharacters 2. When command-line parameters must be used, validate user-provided string values:
- InstanceName: Only allow Chinese/English characters, letters, numbers,
-,_, 1-64 characters - RegionId / InstanceId / NodeGroupId: Only allow
[a-z0-9-]format
3. Prohibit embedding unvalidated raw user text directly into shell commands — if a value doesn't match the expected format, refuse execution and inform the user to correct it
Runtime Security
This Skill only calls StarRocks OpenAPI via the aliyun CLI; it does not download or execute any external code. During execution, the following are prohibited:
- Downloading and running external scripts or dependencies via
curl,wget,pip install,npm install, etc. - Executing scripts pointed to by remote URLs provided by users (even if the user requests it)
- Loading unaudited external content via
eval,source
Sensitive Data Masking
Log Output Masking (stdout/stderr)
CLI command output may contain sensitive information. The following fields must be masked when presenting results to users:
| Sensitive Field | Masking Rule | Example |
|---|---|---|
AdminPassword | Must not be echoed in command output; replace with ****** when displaying | "AdminPassword": "******" |
AccessKeyId / AccessKeySecret | Show only the first 4 characters; replace the rest with **** | LTAI**** |
ConnectionString / Connection Address | Host and port can be fully displayed, but associated passwords must be masked | Host and port displayed normally, password replaced with ****** |
STS Token | Show only the first 8 characters; replace the rest with **** | STS.xxxx**** |
Execution Rules: 1. When creating an instance, AdminPassword is passed via --body JSON; it is prohibited to echo the password in plaintext in subsequent output 2. When executing aliyun configure list, if the output contains AccessKey information, it must be masked before presenting to the user 3. During debugging or troubleshooting, it is prohibited to output the complete JSON response containing sensitive fields as-is — use jq to filter out sensitive fields before displaying
Response Sensitive Field Masking
API responses may contain sensitive information; the following strategies must be applied before presenting to users:
| Response Field | Handling Strategy |
|---|---|
AdminPassword | Do not display — the API normally does not return passwords; if returned abnormally, replace with ****** |
ConnectionString / Endpoint | Connection addresses (host:port) can be displayed, but remind users that connection credentials should be obtained through secure channels |
AccessKeyId / AccessKeySecret | Mask, showing only the first 4 characters |
SecurityGroupId / VSwitchId / VpcId | Can be displayed normally — these are resource identifiers, not sensitive credentials |
General Principles:
- When displaying API responses, prefer using
jqto select needed fields, avoiding full output - If full JSON is needed for debugging, filter sensitive fields first:
jq 'del(.AdminPassword, .AccessKeySecret)' - Prohibit writing passwords, tokens, or other credential information to log files or persistent storage
Intent Routing
Disambiguation Rule: When user input is ambiguous (e.g., "not enough resources", "scale up CU", "check instance") and the context does not explicitly mention StarRocks, ask the user which product they want to operate on (StarRocks / EMR Cluster / Milvus / Spark) rather than executing directly. Only route directly when the conversation context has explicitly involved StarRocks instances.
| Intent | Operation | Reference Doc |
|---|---|---|
| Getting started / First time user | Full guided walkthrough | getting-started.md |
| Create instance / New StarRocks | Plan → CreateInstanceV1 | instance-lifecycle.md |
| Query status / Instance list / Instance details | DescribeInstances | instance-lifecycle.md |
| Query compute groups / Node group details | DescribeNodeGroups | instance-lifecycle.md |
| Query upgradable versions | QueryUpgradableVersions | operations.md |
| API parameter lookup | Parameter reference | api-reference.md |
Timeouts
| Operation Type | Timeout Recommendation |
|---|---|
| Read-only queries | 30 seconds |
| Write operations | 60 seconds |
| Polling | 30 seconds per attempt, no more than 3 minutes total |
Pagination
List-type APIs use PageNumber + PageSize pagination:
PageNumber: Page number, starting from 1, default 1PageSize: Items per page, default 10, maximum 100- Continue to next page when returned result count equals PageSize
Output
- Display lists in table format with key fields
- Convert timestamps to human-readable format
- Use
jqto filter fields
Error Handling
| Error Code | Cause | Agent Action |
|---|---|---|
| Throttling | API rate limiting | Wait 5 seconds and retry, up to 3 times |
| ServiceUnavailable | Service temporarily unavailable | Wait 5 seconds and retry, up to 3 times; if still failing, stop and inform the user |
| InvalidParameter | Invalid parameter | Read the error Message and correct the parameter |
| Forbidden.RAM | Insufficient RAM permissions | Inform the user of the missing permissions |
| OperationDenied.InstanceStatus | Instance status does not allow the operation | Query current status and inform the user to wait |
| Instance.NotFound | Instance does not exist or has been deleted | Use DescribeInstances to search for the correct InstanceId and confirm with the user |
| IncompleteSignature / InvalidAccessKeyId | Credential error or expired | Prompt the user to run aliyun configure list to check credentials |
General Principle: When encountering errors, read the complete error Message first; do not blindly retry based solely on the error code. Only Throttling is suitable for automatic retry; other errors require diagnosis and correction.
Related Documents
- Getting Started - Simplified workflow for creating your first instance
- Instance Full Lifecycle - Planning, creation, management
- Daily Operations - Configuration changes, maintenance, diagnostics
- API Parameter Reference - Complete parameter documentation
- RAM Permission Policies - Required RAM permissions and policy examples
API Parameter Reference
All APIs use version 2022-10-19 with RPC-style requests.
Table of Contents
- Instance Management: CreateInstanceV1, DescribeInstances, DescribeNodeGroups, DescribeInstanceConfigs, RestartInstance, RestartNodeGroup, RestartNodes, ResumeInstance, ModifyChargeType, ChangeResourceGroup, EnableSSLConnection, DisableSSLConnection, RestoreInstance
- Scaling Management: ModifyCu, ModifyCuPreCheck, ModifyDiskSize, ModifyDiskNumber, ModifyDiskPerformanceLevel, ModifyDiskType, ModifyNodeNumber, ModifyNodeNumberPreCheck
- Version Management: QueryUpgradableVersions
- Configuration Management: ModifyInstanceConfig, DescribeConfigHistory, ModifyInstanceConfigPreCheck, RollbackConfigModification
- Gateway Management: ListGateway, TogglePublicSlb, IsolateLeader
Instance Management
CreateInstanceV1 - Create Instance
Passing Method: --RegionId via named parameter, all other parameters via --body JSON.
Request Parameters (body JSON):
| Parameter | Type | Required | Description |
|---|---|---|---|
| RegionId | string | Yes | Region ID (must be in body, cannot rely solely on CLI --RegionId) |
| InstanceName | string | Yes | Instance name |
| AdminPassword | string | Yes | Admin password (8-30 characters, containing at least three of: uppercase letters, lowercase letters, digits, special characters @#$%^*_+-.) |
| Version | string | Yes | StarRocks version (e.g., "3.2", "3.3") |
| RunMode | string | Yes | Architecture type: shared_nothing (shared-nothing edition) / shared_data (shared-data edition) |
| PackageType | string | Yes | Version series: official (Standard Edition) / trial (Trial Edition). Must be explicitly specified; omitting it will cause creation failure |
| PayType | string | Yes | Payment type: postPaid (pay-as-you-go) / prePaid (subscription) |
| VpcId | string | Yes | VPC ID |
| ZoneId | string | Yes | Availability zone ID (must match the ZoneId in VSwitches) |
| VSwitchId | string | Yes | VSwitch ID (must match the VswId in VSwitches) |
| VSwitches | array | Yes | VSwitch list [{"VswId":"vsw-xxx","ZoneId":"cn-hangzhou-h","Primary":true}] |
| SecurityGroupId | string | Yes | Security group ID |
| OssAccessingRoleName | string | Yes | OSS access role name, required for all architecture types, typically AliyunEMRDefaultRole |
| Cu | integer | Yes | CU count (minimum 8) |
| FrontendNodeGroups | array | Yes | FE node group configuration, required for all architecture types (see node group parameters below) |
| BackendNodeGroups | array | Yes | BE/CN node group configuration, required for all architecture types (see node group parameters below) |
| Duration | integer | No | Purchase duration (required for subscription) |
| PricingCycle | string | No | Duration unit: Month / Year |
| AutoRenew | boolean | No | Whether to auto-renew |
| AutoRenewPeriod | integer | No | Auto-renewal duration |
| ClientToken | string | No | Idempotency token |
Node Group Parameters (FrontendNodeGroups / BackendNodeGroups array elements):
| Parameter | Type | Required | Description |
|---|---|---|---|
| NodeGroupName | string | Yes | Node group name (FE typically defaultFeNodeGroup, BE typically default_warehouse) |
| Cu | integer | Yes | Node group CU count. FE Cu available values: [8, 16, 32, 64] (4 is not supported) |
| SpecType | string | Yes | Spec type: FE only supports standard; BE/CN supports standard / ramEnhanced (Memory Enhanced) / networkEnhanced (Network Enhanced) / localSSD (High-performance Storage) / bigData (Large-scale Storage) |
| ResidentNodeNumber | integer | Yes | Resident node count (typically 1) |
| DiskNumber | integer | Yes | Disk count per node (typically 1) |
| StorageSize | integer | Yes | Size per disk (GB), minimum 200 GB, maximum 65000 GB |
| StoragePerformanceLevel | string | Yes | Disk performance level: pl0 / pl1 / pl2 / pl3 |
Example (Shared-data Edition):
aliyun starrocks CreateInstanceV1 --RegionId cn-hangzhou --body '{
"RegionId": "cn-hangzhou",
"InstanceName": "my-starrocks",
"AdminPassword": "MyP@ssw0rd123",
"Version": "3.3",
"RunMode": "shared_data",
"PackageType": "official",
"PayType": "postPaid",
"VpcId": "vpc-xxx",
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-xxx",
"VSwitches": [{"VswId": "vsw-xxx", "ZoneId": "cn-hangzhou-h", "Primary": true}],
"SecurityGroupId": "sg-xxx",
"OssAccessingRoleName": "AliyunEMRDefaultRole",
"Cu": 8,
"FrontendNodeGroups": [
{
"NodeGroupName": "defaultFeNodeGroup",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"BackendNodeGroups": [
{
"NodeGroupName": "default_warehouse",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"ClientToken": "uuid-xxx"
}'Example (Shared-nothing Edition):
aliyun starrocks CreateInstanceV1 --RegionId cn-hangzhou --body '{
"RegionId": "cn-hangzhou",
"InstanceName": "my-starrocks",
"AdminPassword": "MyP@ssw0rd123",
"Version": "3.3",
"RunMode": "shared_nothing",
"PackageType": "official",
"PayType": "postPaid",
"VpcId": "vpc-xxx",
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-xxx",
"VSwitches": [{"VswId": "vsw-xxx", "ZoneId": "cn-hangzhou-h", "Primary": true}],
"SecurityGroupId": "sg-xxx",
"OssAccessingRoleName": "AliyunEMRDefaultRole",
"Cu": 8,
"FrontendNodeGroups": [
{
"NodeGroupName": "defaultFeNodeGroup",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"BackendNodeGroups": [
{
"NodeGroupName": "default_warehouse",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"ClientToken": "uuid-xxx"
}'---
DescribeInstances - Query Instances
Passing Method: Named parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| RegionId | string | Yes | Region ID |
| InstanceId | string | No | Instance ID |
| InstanceName | string | No | Instance name (fuzzy match) |
| InstanceStatus | string | No | Instance status (note: it is InstanceStatus, not InstanceState) |
| PageNumber | integer | No | Page number, default 1 |
| PageSize | integer | No | Items per page, default 10 |
Examples:
# Query all instances
aliyun starrocks DescribeInstances --RegionId cn-hangzhou
# Query a specific instance
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceId c-xxx
# Filter by status
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceStatus running---
DescribeNodeGroups - Query Compute Groups
Passing Method: All parameters via --body JSON. CLI does not support --InstanceId named parameter.
| Parameter | Type | Required | Description |
|---|---|---|---|
| InstanceId | string | Yes | Instance ID |
| RegionId | string | No | Region ID |
| ClusterId | string | No | Cluster ID |
| PageNumber | integer | No | Page number |
| PageSize | integer | No | Items per page |
Example:
aliyun starrocks DescribeNodeGroups --body '{"InstanceId": "c-xxx", "RegionId": "cn-hangzhou"}'---
DescribeInstanceConfigs - Query Configuration
Passing Method: Named parameters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| InstanceId | string | Yes | Instance ID |
| ConfigType | string | No | Configuration type (e.g., fe, be, cn) |
| ConfigKey | string | No | Configuration item name |
| AllowModify | boolean | No | Query only modifiable configurations |
| PageNumber | integer | No | Page number |
| PageSize | integer | No | Items per page |
Examples:
# Query all configurations
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx
# Query configurations of a specific type
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx --ConfigType fe
# Query only modifiable configurations
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx --AllowModify true---
Related Documents
- Getting Started - Simplified workflow for creating your first instance
- Instance Full Lifecycle - Planning, creation, management
- Daily Operations - Configuration changes, maintenance, diagnostics
Quick Start: Create Your First StarRocks Instance from Scratch
This guide helps first-time users complete: Prerequisites check → Create first instance → Verify running → Clean up resources.
Prerequisites
1. CLI Environment
# Verify Alibaba Cloud CLI is installed
aliyun version
# Verify credentials are configured (should display current profile)
aliyun configure list2. Network Resources
Creating a StarRocks instance requires the following cloud resources; if unavailable, they need to be created first. Confirm the RegionId with the user before proceeding (e.g., cn-hangzhou, cn-beijing, cn-shanghai, etc.):
# Check if there is an available VPC
aliyun vpc DescribeVpcs --RegionId <RegionId>
# Check if the VPC has a VSwitch
aliyun vpc DescribeVSwitches --RegionId <RegionId> --VpcId vpc-xxx
# Check if there is a security group
aliyun ecs DescribeSecurityGroups --RegionId <RegionId> --VpcId vpc-xxxDon't have these resources? Please create VPC, VSwitch, and Security Group first via the Alibaba Cloud console or CLI.
3. Confirm Availability Zone Information
Record the following information, which will be needed when creating the instance:
- RegionId (e.g.,
cn-hangzhou) - ZoneId (e.g.,
cn-hangzhou-h, from the availability zone where the VSwitch is located) - VpcId, VSwitchId, SecurityGroupId
Step 1: Create Instance
The following is a minimal instance for development and testing, using shared-data architecture, standard specs, pay-as-you-go:
Important:AdminPasswordis a required parameter used to set the initial password for the StarRocks admin account. Password requirements: 8-30 characters, containing at least three of the following: uppercase letters, lowercase letters, digits, and special characters (@#$%^*_+-.).
aliyun starrocks CreateInstanceV1 --RegionId cn-hangzhou --body '{
"RegionId": "cn-hangzhou",
"InstanceName": "my-first-starrocks",
"AdminPassword": "YourP@ssw0rd",
"Version": "3.3",
"RunMode": "shared_data",
"PackageType": "official",
"PayType": "postPaid",
"VpcId": "vpc-xxx",
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-xxx",
"VSwitches": [{"VswId": "vsw-xxx", "ZoneId": "cn-hangzhou-h", "Primary": true}],
"SecurityGroupId": "sg-xxx",
"OssAccessingRoleName": "AliyunEMRDefaultRole",
"Cu": 8,
"FrontendNodeGroups": [
{
"NodeGroupName": "defaultFeNodeGroup",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"BackendNodeGroups": [
{
"NodeGroupName": "default_warehouse",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"ClientToken": "uuid-xxx"
}'The response returns an InstanceId (e.g., c-xxx); note it down for subsequent operations.
Note: Creating an instance incurs costs. The minimum 8 CU configuration is suitable for development and testing; do not use it for production environments.
Step 2: Verify Instance Status
Instance creation is an asynchronous operation, typically taking 5-10 minutes.
# Check instance status
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceId c-xxxStatus Transition: creating → running
The instance is ready when InstanceStatus becomes running.
Instance Status Descriptions
| Status | English | Description |
|---|---|---|
| Not initialized | not_init | Not initialized |
| Creating | creating | Instance is being created |
| Creation failed | creating_failed | Creation failed |
| Running | running | Running normally |
| Agent creating | agent_creating | Agent is being created |
| Gateway updating | gateway_updating | Gateway operations such as toggling public SLB are in progress; most write operations are rejected during this period, typically lasting a few minutes |
| Deleting | deleting | Instance is being released |
| Deletion failed | deleting_failed | Deletion failed |
| Deleted with error | deleted_with_error | Ended after creation failure |
| Deleted | deleted | Deleted |
Step 3: Get Connection Information
After the instance is ready, obtain the connection address:
# Query instance details to get connection address
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceId c-xxxKey information in the response:
- JDBC Connection Address:
jdbc:mysql://<host>:<port> - HTTP Connection Address:
http://<host>:<http_port> - Default Username:
admin - Initial Password: The password set via
AdminPasswordduring creation
Connection Examples
# Connect using MySQL client
mysql -h <host> -P <port> -u admin -p
# Connect using JDBC
jdbc:mysql://<host>:<port>?user=admin&password=<password>Trial Cluster Limitations
The first 8 CU instance created may be marked as a trial cluster, with the following limitations:
| Limitation | Behavior | Error Message |
|---|---|---|
| FE CU | FE CU can only be 4 during creation | Cu of fe should be select from set [4] |
| FE Node Count | FE node count can only be 1 during creation | Number of fe should be in range [1, 1] |
| BE CU | BE CU can only be 8 during creation | Cu of be should be select from set [8] |
| CU Scaling | ModifyCu / ModifyCuPreCheck rejected | Can't modify resource config of trial cluster |
| Config Modification | ModifyInstanceConfig rejected | Invalid configuration change |
| Add Gateway | Insufficient FE resources (only 1 node/4CU), cannot add gateway | The available number of nodes exceed |
Unrestricted Operations: TogglePublicSlb, DescribeInstances, DescribeNodeGroups, DescribeInstanceConfigs can all be executed normally.
Common Creation Failure Causes
| Symptom | Possible Cause | Troubleshooting |
|---|---|---|
| creating_failed | VPC/VSwitch configuration error | Check if network resources exist and are in the same availability zone |
| creating_failed | Security group configuration error | Check if the security group is properly configured |
| creating_failed | Insufficient inventory | Switch availability zone or change specs |
| creating_failed | Missing RAM permissions | Check if starrocks:CreateInstanceV1 permission is granted |
| Forbidden.RAM | Insufficient RAM permissions | Check RAM user permission configuration |
Next Steps
- Need a production-grade instance? → Refer to the production configuration templates in Instance Full Lifecycle
- Daily operations? → Refer to Daily Operations
- API parameter lookup? → Refer to API Parameter Reference
Instance Full Lifecycle: Plan → Create → Manage
Table of Contents
- 1. Planning Phase: Spec selection, payment method, capacity planning, network planning
- 2. Creation Phase: Pay-as-you-go / Subscription / Shared-nothing edition
- 3. Query and Monitoring: Instance list, details, state machine
- 4. Property Management: Rename
1. Planning Phase
Architecture Type Selection
| Architecture Type | RunMode Value | Node Composition | Data Storage | Data Disk Type | Use Cases |
|---|---|---|---|---|---|
| Shared-nothing Edition | shared_nothing | FE + BE | Cloud disk or local disk | ESSD cloud disk or local disk | OLAP multi-dimensional analysis, high-concurrency queries, real-time data analysis, latency-sensitive |
| Shared-data Edition | shared_data | FE + CN | OSS object storage | ESSD cloud disk (cache) | Highly cost-sensitive storage with relatively lower query efficiency requirements, such as data warehouse applications |
Version Series Selection
| Version Series | PackageType Value | Features | Spec Support | Region Restrictions |
|---|---|---|---|---|
| Standard Edition | official | Full functionality, production-grade stability | Supports all spec types | Available in all regions |
| Trial Edition | trial | Simplified configuration, quick start | Only supports standard specs | Limited to certain regions (e.g., Beijing, Shanghai) |
Important: PackageType must be explicitly specified when creating an instance; omitting it will cause creation failure.Compute Spec Selection
| Spec Type | BE SpecType Value | Features | Use Cases |
|---|---|---|---|
| Standard | standard | Balanced compute and memory configuration | General OLAP analysis |
| Memory Enhanced | ramEnhanced | Higher memory ratio | Complex queries, high concurrency |
| Network Enhanced | networkEnhanced | Higher network bandwidth | External table analysis with large data scan volumes |
| High-performance Storage | localSSD | High-performance local SSD storage | High I/O scenarios with strict storage I/O performance requirements |
| Large-scale Storage | bigData | Large capacity local HDD storage | Extremely large data volumes, cost-sensitive |
Note: The spec types above are mutually exclusive; only one SpecType can be chosen when creating an instance. FE node group SpecType only supports standard.Storage Specifications
| Storage Type | Performance Level | Max IOPS | Max Throughput | Use Cases |
|---|---|---|---|---|
| ESSD PL0 | Entry-level | 10,000 | 180 MB/s | Development and testing |
| ESSD PL1 | Standard | 50,000 | 350 MB/s | General production |
| ESSD PL2 | High-performance | 100,000 | 750 MB/s | High-performance requirements |
| ESSD PL3 | Ultra-performance | 1,000,000 | 4,000 MB/s | Ultra-performance requirements |
Payment Method
| Payment Method | PayType Value | Description |
|---|---|---|
| Pay-as-you-go | postPaid | Pay after use, billing generated hourly, suitable for short-term needs/testing |
| Subscription | prePaid | Pay before use, suitable for long-term needs, more cost-effective |
Payment Method Conversion: Only subscription to pay-as-you-go is supported (via ModifyChargeType API). Pay-as-you-go cannot be converted to subscription (requires recreating the instance).
Usage Limits
- Naming Limits: Instance name limited to a maximum of 64 characters, supports Chinese, letters, numbers, hyphens, and underscores
- Node Count Limits:
- FE nodes: 1-11 (odd numbers only)
- BE nodes: 3-50
- CN nodes: 1-100
Capacity Planning
CU Count Selection
| Scenario | Recommended CU | Description |
|---|---|---|
| Development and testing | 8 CU | Minimum configuration, feature validation |
| Small-scale production | 16-32 CU | Supports moderate concurrency |
| Medium-scale | 64-128 CU | Supports higher concurrency and complex queries |
| Large-scale | 256+ CU | High concurrency, complex analytics scenarios |
Disk Capacity Selection (Shared-nothing Edition)
| Scenario | Recommended Disk | Description |
|---|---|---|
| Development and testing | 100 GB | Feature validation |
| Small-scale production | 500 GB - 1 TB | Small data volumes |
| Medium-scale | 1-5 TB | Medium data volumes |
| Large-scale | 5+ TB | Large data volumes |
Shared-data Edition: Data is stored in OSS; no need to pre-plan disk capacity, only consider cache space.
Network Planning
- VPC: Same VPC as the business system for internal network access
- VSwitch: Choose an availability zone with sufficient inventory; use
VSwitchesarray format when creating:[{"VswId":"vsw-xxx","ZoneId":"cn-hangzhou-h","Primary":true}] - Security Group: Configure necessary port rules (MySQL port, HTTP port, etc.)
- OSS Access Role (required for all architecture types): Provide a RAM Role name (
OssAccessingRoleName) to authorize StarRocks to access OSS. Typically useAliyunEMRDefaultRole; if not created yet, complete service authorization in the RAM console
2. Creation Phase
Important:AdminPasswordmust be set when creating an instance; this password is used for the admin account to log in to StarRocks. Password requirements: 8-30 characters, containing at least three of the following: uppercase letters, lowercase letters, digits, and special characters (@#$%^*_+-.).
Template 1: Pay-as-you-go Development and Testing
Shared-data edition + Standard specs + 8 CU, suitable for development testing and feature validation:
aliyun starrocks CreateInstanceV1 --RegionId cn-hangzhou --body '{
"RegionId": "cn-hangzhou",
"InstanceName": "dev-starrocks",
"AdminPassword": "YourP@ssw0rd",
"Version": "3.3",
"RunMode": "shared_data",
"PackageType": "official",
"PayType": "postPaid",
"VpcId": "vpc-xxx",
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-xxx",
"VSwitches": [{"VswId": "vsw-xxx", "ZoneId": "cn-hangzhou-h", "Primary": true}],
"SecurityGroupId": "sg-xxx",
"OssAccessingRoleName": "AliyunEMRDefaultRole",
"Cu": 8,
"FrontendNodeGroups": [
{
"NodeGroupName": "defaultFeNodeGroup",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"BackendNodeGroups": [
{
"NodeGroupName": "default_warehouse",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"ClientToken": "uuid-xxx"
}'Template 2: Subscription Production Environment
Shared-data edition + Standard specs + 16 CU, suitable for production environments:
aliyun starrocks CreateInstanceV1 --RegionId cn-hangzhou --body '{
"RegionId": "cn-hangzhou",
"InstanceName": "prod-starrocks",
"AdminPassword": "YourP@ssw0rd",
"Version": "3.3",
"RunMode": "shared_data",
"PackageType": "official",
"PayType": "prePaid",
"Duration": 1,
"PricingCycle": "Month",
"AutoRenew": true,
"AutoRenewPeriod": 1,
"VpcId": "vpc-xxx",
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-xxx",
"VSwitches": [{"VswId": "vsw-xxx", "ZoneId": "cn-hangzhou-h", "Primary": true}],
"SecurityGroupId": "sg-xxx",
"OssAccessingRoleName": "AliyunEMRDefaultRole",
"Cu": 16,
"FrontendNodeGroups": [
{
"NodeGroupName": "defaultFeNodeGroup",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"BackendNodeGroups": [
{
"NodeGroupName": "default_warehouse",
"Cu": 16,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"Tags": [
{"Key": "env", "Value": "production"},
{"Key": "team", "Value": "data-platform"}
],
"ClientToken": "uuid-xxx"
}'Template 3: Shared-nothing High-performance
Shared-nothing edition + Memory Enhanced + 32 CU, suitable for high-performance low-latency scenarios:
aliyun starrocks CreateInstanceV1 --RegionId cn-hangzhou --body '{
"RegionId": "cn-hangzhou",
"InstanceName": "high-perf-starrocks",
"AdminPassword": "YourP@ssw0rd",
"Version": "3.3",
"RunMode": "shared_nothing",
"PackageType": "official",
"PayType": "postPaid",
"VpcId": "vpc-xxx",
"ZoneId": "cn-hangzhou-h",
"VSwitchId": "vsw-xxx",
"VSwitches": [{"VswId": "vsw-xxx", "ZoneId": "cn-hangzhou-h", "Primary": true}],
"SecurityGroupId": "sg-xxx",
"OssAccessingRoleName": "AliyunEMRDefaultRole",
"Cu": 32,
"FrontendNodeGroups": [
{
"NodeGroupName": "defaultFeNodeGroup",
"Cu": 8,
"SpecType": "standard",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 200,
"StoragePerformanceLevel": "pl1"
}
],
"BackendNodeGroups": [
{
"NodeGroupName": "default_warehouse",
"Cu": 32,
"SpecType": "ramEnhanced",
"ResidentNodeNumber": 1,
"DiskNumber": 1,
"StorageSize": 500,
"StoragePerformanceLevel": "pl1"
}
],
"ClientToken": "uuid-xxx"
}'3. Query and Monitoring
Instance List
# All instances
aliyun starrocks DescribeInstances --RegionId cn-hangzhou
# Filter by status
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceStatus running
# Search by name
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceName "prod"
# Paginated query
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --PageNumber 1 --PageSize 20Instance Details
aliyun starrocks DescribeInstances --RegionId cn-hangzhou --InstanceId c-xxxCompute Group Query
aliyun starrocks DescribeNodeGroups --body '{"InstanceId": "c-xxx", "RegionId": "cn-hangzhou"}'Configuration Query
# Query all configurations
aliyun starrocks DescribeInstanceConfigs --RegionId cn-hangzhou --InstanceId c-xxx
# Query configurations of a specific type
aliyun starrocks DescribeInstanceConfigs --RegionId cn-hangzhou --InstanceId c-xxx --ConfigType feInstance State Machine
| Status | English | Description |
|---|---|---|
| Not initialized | not_init | Not initialized |
| Creating | creating | Instance is being created |
| Creation failed | creating_failed | Creation failed |
| Running | running | Running normally |
| Agent creating | agent_creating | Agent is being created |
| Gateway updating | gateway_updating | Gateway operations such as toggling public SLB are in progress; most write operations are rejected during this period, typically lasting a few minutes |
| Deleting | deleting | Instance is being released |
| Deletion failed | deleting_failed | Deletion failed |
| Deleted with error | deleted_with_error | Ended after creation failure |
| Deleted | deleted | Deleted |
Related Documents
- Getting Started - Simplified workflow for creating your first instance
- Daily Operations - Configuration changes, maintenance, diagnostics
- API Parameter Reference - Complete parameter documentation
Daily Operations: Configuration, Maintenance, SSL, Billing, Gateway
1. Configuration Changes
View Current Configuration
# View all configurations
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx
# View configurations of a specific type
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx --ConfigType fe
# View a specific configuration item
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx --ConfigKey query_timeout
# View only modifiable configurations
aliyun starrocks DescribeInstanceConfigs --InstanceId c-xxx --AllowModify trueView Configuration Change History
aliyun starrocks DescribeConfigHistory --InstanceId c-xxxCommon Issues
Configuration Change Failure
| Error Message | Cause | Solution |
|---|---|---|
| InvalidParameter | Configuration item does not exist | Check if ConfigKey is correct |
| OperationDenied.InstanceStatus | Instance status does not allow the operation | Wait for the instance to reach running status |
| modify reason is empty | Reason parameter not provided | Add --Reason "modification reason" parameter |
Restart Timeout
If the restart has not completed after more than 10 minutes:
1. Query instance status to confirm if it is normal 2. If the issue persists, contact Alibaba Cloud technical support
Version Upgrade Failure
| Error Message | Cause | Solution |
|---|---|---|
| VersionNotSupport | Target version not supported | Check available versions returned by QueryUpgradableVersions |
| OperationDenied | Current status does not allow upgrade | Wait for the instance to reach running status |
Related Documents
- Instance Full Lifecycle - Planning, creation, management
- API Parameter Reference - Complete parameter documentation
RAM Permission Policy Reference
This document lists all RAM permissions required for managing EMR Serverless StarRocks instances with this Skill.
Permission Overview
Configure the following permissions for the RAM user or role that performs operations. You can create custom policies via the RAM console or attach the corresponding system policies.
StarRocks Instance Management Permissions
| Permission (Action) | Description | Operation Type |
|---|---|---|
starrocks:CreateInstanceV1 | Create StarRocks instance | Write |
starrocks:DescribeInstances | Query instance list and details | Read-only |
starrocks:DescribeNodeGroups | Query node group details | Read-only |
starrocks:DescribeInstanceConfigs | Query instance configuration | Read-only |
starrocks:DescribeConfigHistory | Query configuration change history | Read-only |
Configuration and Operations Permissions
| Permission (Action) | Description | Operation Type |
|---|---|---|
starrocks:QueryUpgradableVersions | Query available upgrade versions | Read-only |
Gateway Management Permissions
| Permission (Action) | Description | Operation Type |
|---|---|---|
starrocks:ListGateway | Query gateway list | Read-only |
Dependent Cloud Product Permissions
Network resources need to be queried when creating instances, requiring the following cloud product permissions:
| Permission (Action) | Description | Operation Type |
|---|---|---|
vpc:DescribeVpcs | Query VPC list | Read-only |
vpc:DescribeVSwitches | Query VSwitch list | Read-only |
ecs:DescribeSecurityGroups | Query security group list | Read-only |
Custom Policy Examples
Read-only Policy (Operations Viewing)
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"starrocks:DescribeInstances",
"starrocks:DescribeNodeGroups",
"starrocks:DescribeInstanceConfigs",
"starrocks:DescribeConfigHistory",
"starrocks:QueryUpgradableVersions",
"starrocks:ListGateway"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeVpcs",
"vpc:DescribeVSwitches",
"ecs:DescribeSecurityGroups"
],
"Resource": "*"
}
]
}Full Management Policy
{
"Version": "1",
"Statement": [
{
"Effect": "Allow",
"Action": [
"starrocks:CreateInstanceV1",
"starrocks:DescribeInstances",
"starrocks:DescribeNodeGroups",
"starrocks:DescribeInstanceConfigs",
"starrocks:DescribeConfigHistory",
"starrocks:QueryUpgradableVersions",
"starrocks:ListGateway"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"vpc:DescribeVpcs",
"vpc:DescribeVSwitches",
"ecs:DescribeSecurityGroups"
],
"Resource": "*"
}
]
}