Downloads an Object Storage Service (OSS) object to an Elastic Compute Service (ECS) instance and runs commands.
Description
Downloads an OSS object to an ECS instance and runs commands.
Syntax
Action: ACS::ECS::DownloadOSSFileAndRunCommand
Properties:
regionId: String
parameters: Json
instanceId: String
bucketName: String
objectName: String
URLExpirationTime: Number
OSSRegion: String
tokenInfo: String
destinationDir: String
whetherSaveToFile: Boolean
commandContent: String
workingDir: String
timeout: Number
Attributes
|
Attribute |
Description |
Type |
Required |
Default value |
Limit |
|
regionId |
Region ID. |
String |
No |
{{ ACS::RegionId }} |
|
|
parameters |
Command parameters. |
Json |
No |
{} |
|
|
instanceId |
ECS instance ID. |
String |
Yes |
||
|
bucketName |
OSS bucket name. |
String |
Yes |
||
|
objectName |
OSS object name. |
String |
Yes |
||
|
URLExpirationTime |
Validity period of the OSS object download URL, in seconds. |
Number |
No |
6000 |
|
|
OSSRegion |
Region of the OSS bucket. |
String |
Yes |
||
|
tokenInfo |
Token for downloading files. Required only for GitHub downloads. |
String |
No |
"" |
|
|
destinationDir |
Download destination directory on the ECS instance. |
String |
Yes |
||
|
whetherSaveToFile |
Whether to save the downloaded content to a file. |
Boolean |
No |
True |
|
|
commandContent |
Command to run after the download. |
String |
Yes |
||
|
workingDir |
Working directory for command execution. Linux default: /root. Windows default: the Cloud Assistant client directory, such as C:\Windows\System32. |
String |
No |
"" |
|
|
timeout |
Command execution timeout, in seconds. |
Number |
No |
600 |
Output
|
Output item |
Description |
Type |
|
downloadFileCommandOutput |
String |
|
|
runCommandOutput |
String |
References
View the template source on GitHub: ACS::ECS::DownloadOSSFileAndRunCommand.