> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/home/backup-and-storage/ionos-object-storage/s3-tools/awscli/awscli-configure.md).

# 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 CLOUD 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 CLOUD 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.

```bash
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:

```bash
--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>](/cloud/home/backup-and-storage/ionos-object-storage/endpoints.md).

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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/home/backup-and-storage/ionos-object-storage/s3-tools/awscli/awscli-configure.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
