# 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/sections-test/guides/storage-and-backup/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).
