Description
Downloads files to an Elastic Compute Service (ECS) instance.
Syntax
Action: ACS::ECS::DownloadFile
Properties:
regionId: String
instanceId: String
sourceType: String
sourcePath: String
tokenInfo: String
destinationDir: String
timeout: Number
fileOwner: String
fileGroup: String
fileMode: String
overwrite: BooleanAttributes
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 | "" | |
destinationDir | The directory to which the files are downloaded on the ECS instance. | String | Yes | ||
timeout | The timeout period. | Number | No | 600 | |
fileOwner | The file owner. | String | No | "" | |
fileGroup | The file group to which the files belong. | String | No | "" | |
fileMode | The file permissions. | String | No | "" | |
overwrite | Specifies whether to overwrite existing files. | Boolean | No | True |
Output
Output item | Description | Type |
commandOutput | String |
References
For more information, see ACS::ECS::DownloadFile at GitHub.