CloudOps Orchestration Service (OOS) provides batch operation features. For example, you can batch download files to Elastic Compute Service (ECS) instances. This topic describes how to batch download files to ECS instances in different scenarios using different methods.
Scenario 1: Download files to an instance over HTTPS
Prerequisites
An ECS instance is created and the ECS instance can access the Internet. For more information, see Create an ECS instance and Enable Internet access.
Procedure
Go toi the CloudOps Orchestration Service - Common O&M Tasks - Batch Instance Operations page.
Click Create to go to the Create Task Batch Instance Operations page.
For Task Type, select Batch Download Files. Specify the file type and instance as prompted, and then click Create.

After the execution is complete, click Details to view the execution results.

Scenario 2: Download files from Object Storage Service (OSS) to an instance
Prerequisites
The selected instance must be configured with an instance role, and the instance role must include OSS read permissions.
Procedure
Create a role and grant permissions.
Go to the RAM - Create Role page.
On the Create Role page, set Principal Type to Alibaba Cloud Service, then select a specific Alibaba Cloud service, and click OK.
NoteThe Alibaba Cloud services that can be selected in Principal Name depend on what is displayed in the console interface. In this example, Elastic Compute Service is selected.
In the Create Role dialog box, enter a Role Name (for example, InstanceRole), and then click OK.
Add OSS read permissions to the instance role, and then click Grant Permissions.
The newly created RAM role does not have any permissions by default. You need to grant permissions to the RAM role, which means you need to add OSS read permissions (AliyunOSSReadOnlyAccess) to the instance role.

Confirm that the permissions are granted, and click Complete.
In the OOS console, batch download files to ECS instances.
Visit the CloudOps Orchestration Service - Common O&M Tasks - Batch Instance Operations page.
Click Create to go to the Create Task Batch Instance Operations page.
For Task Type, select Instance Operations. For Operations to Be Performed, select Add Role, configure the Role Name, select the instance, and click Create.

On the Parameter Confirmation page, click OK.
On the Create Task Batch Instance Operations page, for Task Type, select Batch Download Files, configure the relevant parameters and select the instance, and then click Create.

After the execution is complete, you can view the execution results in Details.
