Downloads files to an ECS instance and runs commands by using Cloud Assistant.
Description
Downloads files to an Elastic Compute Service (ECS) instance and runs commands.
Syntax
Action: ACS::ECS::DownloadFileAndRunCommand
Properties:
regionId: String
instanceId: String
sourceType: String
sourcePath: String
tokenInfo: String
destinationDir: String
overwrite: Boolean
commandContent: String
workingDir: String
timeout: Number
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 |
||
|
sourceType |
The file storage type. |
String |
Yes |
||
|
sourcePath |
The URL of the file. |
String |
Yes |
||
|
tokenInfo |
The token used to download files. Required only if you download files from GitHub. |
String |
No |
||
|
overwrite |
Whether to overwrite existing files. |
Boolean |
No |
True |
|
|
destinationDir |
The download destination directory on the ECS instance. |
String |
Yes |
||
|
commandContent |
The Cloud Assistant commands to run. |
String |
Yes |
||
|
workingDir |
The working directory for command execution on the ECS instance. For Linux instances, the default is the /root home directory. For Windows instances, the default is the Cloud Assistant client process directory, such as C:\Windows\System32. |
String |
No |
"" |
|
|
timeout |
The timeout period for command execution on the ECS instance. |
Number |
No |
600 |
Output
|
Output item |
Description |
Type |
|
downloadFileCommandOutput |
String |
|
|
runCommandOutput |
String |
References
For more information, see ACS::ECS::DownloadFileAndRunCommand at GitHub.