Description
Adds a tag to an Elastic Compute Service (ECS) instance and sets the tag value to the result of running a Cloud Assistant command.
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 ACS::ECS::TagInstanceByRunCommandResult at GitHub.