# \[Data Connector 1.0] AWS CLI (Linux)

This guide describes how to access your data through the AWS CLI. Below you will see the steps we followed to access your data [using AWS Command Line Interface](https://aws.amazon.com/cli/)

**Step 1:** Install the Amazon AWS CLI using the instructions on this page: <https://aws.amazon.com/cli/>

**Step 2:** Once installed you need to initialize your AWS configuration by typing the following command:

```
aws configure
```

This command will ask you for your `Access Key ID`, `Secret Access Key`, and `Default region` which you can all retrieve from the Data Connector settings page on the Groups hub.&#x20;

See our [Your Credentials](/integrating-our-data-into-your-tools-via-data-connector-2.0/getting-started-with-data-connector-2.0/your-credentials.md) page for instructions how to retrieve these settings.

The `Default output format` option you can leave empty.

**Step 3:** Now you can use the CLI to retrieve a list of all files in your S3 bucket.

To list all files you can for example us the following command

```
aws s3 ls s3://your-bucket-name
```

Or use the following command to download a file to your local hard drive home directory

```
aws s3 cp s3://your-bucket-name/filename.csv ~/filename.csv
```

{% hint style="info" %}
See the [S3 CLI reference pages](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html) for documentation on all the S3 commands you can use
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enterprise-docs.datacamp.com/data-connector-1.0-documentation/data-connector-1.0-using-the-data-connector/data-connector-1.0-downloading-data/data-connector-1.0-aws-cli-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
