Description
Downloads an Object Storage Service (OSS) object to an Elastic Compute Service (ECS) instance and runs a command.
Syntax
Action: ACS::ESS::DownloadOSSFileAndRunCommand
Properties:
regionId: String
instanceId: String
bucketName: String
objectName: String
URLExpirationTime: Number
OSSRegion: String
tokenInfo: String
destinationDir: String
whetherSaveToFile: 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 | ||
bucketName | The name of the OSS bucket. | String | Yes | ||
objectName | The name of the OSS object. | String | Yes | ||
URLExpirationTime | The expiration time of the URL that is used to download the OSS object. | Number | No | 6000 | |
OSSRegion | The region in which the OSS bucket resides. | String | Yes | ||
tokenInfo | The token that is used to download the OSS object. This attribute is required only if you download files from GitHub. | String | No | ||
destinationDir | The directory to which the object is downloaded on the ECS instance. | String | Yes | ||
whetherSaveToFile | Specifies whether to save the file content to a specific file. | Boolean | No | True | |
commandContent | The content of the command. | String | Yes | ||
workingDir | The directory in which the command is run on the ECS instance. For a Linux instance, the command is run in the /root home directory of the root user. For a Windows instance, the command is run in the directory where the Cloud Assistant client process resides. Example: C:\Windows\System32. | String | No | ||
timeout | The timeout period for running the command on the ECS instance. | Number | No | 600 |
Output
Output item | Description | Type |
downloadFileCommandOutput | String | |
runCommandOutput | String |
References
For more information, see ACS::ESS::DownloadOSSFileAndRunCommand.yml at GitHub.