Using the AWS Command Line Interface with AWS DataSync - AWS DataSync

Using the AWS Command Line Interface with AWS DataSync

In this section, you can find examples of using the AWS Command Line Interface (AWS CLI) commands for AWS DataSync. You can use these commands to create an agent, create source and destination locations, and run a task.

Before you begin, we recommend reading How AWS DataSync Works to understand the components and terms used in DataSync and how DataSync works. We also recommend reading Using Identity-Based Policies (IAM Policies) for DataSync to understand the AWS Identity and Access Management (IAM) permissions that DataSync requires.

Before you use AWS CLI commands, install the AWS CLI. For information about how to install the AWS CLI, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. After you install the CLI, you can use the help command to see the DataSync operations and the parameters associated with them.

To see the available operations, enter the following command.

aws datasync help

To see the parameters associated with a specific operation, enter the following command.

aws datasync operation help

For more information about the AWS CLI, see What Is the AWS Command Line Interface?

For information about supported AWS Regions and endpoints, see DataSync AWS Regions and Endpoints.

For information about DataSync Amazon Resource Name (ARN) values, see DataSync Amazon Resource Names.