All Products
Search
Document Center

CloudOps Orchestration Service:ACS::ECS::TagInstanceByRunCommandResult

Last Updated:Jun 18, 2026

Adds a tag to an ECS instance and sets the tag value to the result of a Cloud Assistant command.

Description

Adds a tag to an Elastic Compute Service (ECS) instance. The tag value is set to the output of a Cloud Assistant command that runs on the instance.

Syntax

Action: ACS::ECS::TagInstanceByRunCommandResult
Properties:
 regionId: String
 instanceId: String
 tagKey: String
 commandContent: String

Attributes

Attribute

Description

Type

Required

Default value

Limit

regionId

The region ID.

String

No

{{ ACS::RegionId }}

instanceId

The ID of the Linux-based ECS instance.

String

Yes

The ID must be 1 to 30 characters in length.

tagKey

The tag key.

String

Yes

commandContent

The Cloud Assistant command to be run on the Linux-based ECS instance.

String

Yes

Output

Output item

Description

Type

tagValue

String

References

For more information, see the ACS::ECS::TagInstanceByRunCommandResult template on GitHub.