
Alibaba Cloud Stop
CertifiedStop ECS instances
Alibaba Cloud Stop
Stop ECS instances
Stops one or more running ECS instances. The task returns once Alibaba Cloud accepts the request, while instances are still Stopping.
type: io.kestra.plugin.alibaba.ecs.StopExamples
Stop an instance and stop billing for its compute resources
id: ecs_stop
namespace: company.team
tasks:
- id: stop
type: io.kestra.plugin.alibaba.ecs.Stop
accessKeyId: "{{ secret('ALIBABA_ACCESS_KEY_ID') }}"
accessKeySecret: "{{ secret('ALIBABA_ACCESS_KEY_SECRET') }}"
region: cn-hangzhou
instanceIds:
- i-bp1example0000001
stoppedMode: STOP_CHARGING
Properties
accessKeyId *string
AccessKey ID
The AccessKey ID used to authenticate against Alibaba Cloud.
accessKeySecret *string
AccessKey secret
The AccessKey secret paired with the AccessKey ID.
instanceIds *array
Instance IDs
The IDs of the ECS instances, up to 100 per task run.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150endpointOverride string
Endpoint override
Custom http or https endpoint URL. When set, it takes precedence over the endpoint derived from region.
forceStop booleanstring
falseForce stop
Stop the instances immediately, like a power cut. Data not written to disk may be lost.
region string
Region
The Alibaba Cloud region ID, for example cn-hangzhou. The service endpoint is derived from it unless endpointOverride is set.
securityToken string
Security token
Optional Security Token Service (STS) token, required when using temporary credentials.
stoppedMode string
KEEP_CHARGINGSTOP_CHARGINGStopped mode
KEEP_CHARGING keeps the compute resources reserved, STOP_CHARGING releases them so pay-as-you-go VPC instances stop being billed for vCPUs and memory. Defaults to the account's economical mode setting.
Outputs
instances array
Status transition of each instance
io.kestra.plugin.alibaba.ecs.AbstractInstanceAction-Instance
Status right after the action, for example Starting or Stopping
Instance ID
Status before the action
requestId string
ECS request ID