Runs custom or default commands on an ECS instance to verify it during server migration.
Description
Runs custom or default commands on an Elastic Compute Service (ECS) instance to verify it during server migration.
Syntax
Action: ACS::ECS::SMCVerifyInstanceByRunCommand
Properties:
regionId: String
instanceId: String
isDeleteInstance: Boolean
commandType: String
commandContent: String
timeout: Number
workingDir: String
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
The region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
instanceId |
The ID of the ECS instance. |
String |
Yes |
||
|
isDeleteInstance |
Whether to delete the ECS instance after the verification is complete. Default value: False. |
Boolean |
No |
False |
|
|
commandType |
The command type. |
String |
No |
RunShellScript |
|
|
commandContent |
The command content. |
String |
No |
"" |
|
|
timeout |
The timeout period for command execution. Unit: seconds. |
Number |
No |
60 |
|
|
workingDir |
The working directory for command execution on the ECS instance. |
String |
No |
/root |
Output
|
Output item |
Description |
Type |
|
invocationOutput |
Json |
References
For more information, see ACS::ECS::SMCVerifyInstanceByRunCommand at GitHub.