Description
Downloads a file to an Elastic Compute Service (ECS) instance and runs a specified command.
Syntax
Action: ACS::ESS::DownloadFileAndRunCommand
Properties:
regionId: String
instanceId: String
sourceType: String
sourcePath: String
tokenInfo: String
destinationDir: String
whetherSaveToFile: 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 type of the source file. |
String |
Yes |
||
|
sourcePath |
The path of the source file. |
String |
Yes |
||
|
tokenInfo |
The GitHub token for authentication. |
String |
No |
||
|
destinationDir |
The destination directory for the downloaded file. |
String |
Yes |
||
|
whetherSaveToFile |
Specifies whether to save the content to a file. |
Boolean |
No |
True |
|
|
commandContent |
The command to run on the instance. |
String |
Yes |
Maximum length: 16,384 bytes. |
|
|
workingDir |
The working directory for command execution. |
String |
No |
||
|
timeout |
The timeout period, in seconds. |
Number |
No |
600 |
Output
|
Output item |
Description |
Type |
|
downloadFileCommandOutput |
String |
|
|
runCommandOutput |
String |
References
For more information, see ACS::ESS::DownloadFileAndRunCommand.yml on GitHub.