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: NumberAttributes
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 that is used to download files. This attribute is required only if you download files from GitHub. | String | No | ||
overwrite | Specifies whether to overwrite existing files. | Boolean | No | True | |
destinationDir | The directory to which the files are downloaded on the ECS instance. | String | Yes | ||
commandContent | The Cloud Assistant commands. | String | Yes | ||
workingDir | The working directory in which the commands are run on the ECS instance. For Linux-based ECS instances, the working directory is the /root home directory of the root user. For Windows-based instances, the working directory is the directory in which the Cloud Assistant client process resides. Example: C:\Windows\System32. | String | No | "" | |
timeout | The timeout period for running commands 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.