# Configure AWS CLI

{% hint style="info" %}
**Prerequisite:** For the installation instructions, see [<mark style="color:blue;">Install or update to the latest version of the AWS CLI</mark>](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html).
{% endhint %}

1. Run the `aws configure` command in a terminal.
2. **AWS Access Key ID \[None]**: Insert the Access Key. In the DCD, go to **Menu** > **Storage & Backup** > **IONOS Object Storage>** > **Key management** and check the **Access keys** section to find the essential details.
3. **AWS Secret Access Key \[None]**: Paste the Secret Key. In the DCD, go to **Menu** > **Storage & Backup** > **IONOS Object Storage** > **Key management** and check the **Access keys** section to find the essential details.
4. **Default region name \[None]**: `de`.
5. **Default output format \[None]**: `json`.

### Using AWS CLI with IONOS Cloud Object Storage

Test if you set up AWS CLI correctly by running a command to list buckets; use any endpoints for testing purposes.

```
aws s3 ls --endpoint-url https://s3.eu-central-1.ionoscloud.com

```

If the setup works correctly, you may proceed with the other commands.

For each command, be sure to include one of the endpoints in the `endpoint-url` parameter:

```
--endpoint-url https://s3.eu-central-2.ionoscloud.com
```

For information on the supported <code class="expression">space.vars.ionos\_cloud\_object\_storage</code> service endpoints, see [<mark style="color:blue;">Endpoints</mark>](https://docs.ionos.com/cloud/backup-and-storage/ionos-object-storage/endpoints).

There are two sets of commands:

* [<mark style="color:blue;">S3</mark>](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html): Offers high-level commands for managing buckets and moving, copying, and synchronizing objects.
* [<mark style="color:blue;">S3api</mark>](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3api/index.html): Allows you to work with specific features such as ACL, CORS, and Versioning.

For additional information, see the official [<mark style="color:blue;">AWS CLI Command Reference</mark>](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/index.html).


---

# 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://docs.ionos.com/cloud/backup-and-storage/ionos-object-storage/s3-tools/awscli/awscli-configure.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.
