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 the service works. We also recommend reading IAM customer managed policies for AWS 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 AWS 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 AWS DataSync endpoints and quotas.

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