# AWS CLI

> Available S3 endpoint: `a-s3.aur.lu` (France, Albi).

Configure AWS CLI with your S3-compatible endpoint and Aurora credentials.

## Installation

If you don't have AWS CLI installed, follow the [official installation guide](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html).

## Configuration

Create a profile (replace values accordingly):

```bash
aws configure --profile aurora
# AWS Access Key ID [None]: <YOUR_ACCESS_KEY>
# AWS Secret Access Key [None]: <YOUR_SECRET_KEY>
# Default region name [None]: us-east-1
# Default output format [None]: json
```

## Usage

Use the custom endpoint URL when running commands. Your selected endpoint is: **a-s3.aur.lu**

```bash
aws --profile aurora --endpoint-url https://a-s3.aur.lu s3 ls
```

## Common Commands

### List buckets

```bash
aws --profile aurora --endpoint-url https://a-s3.aur.lu s3 ls
```

### Upload a file

```bash
aws --profile aurora --endpoint-url https://a-s3.aur.lu s3 cp ./file.txt s3://my-bucket/
```

### Sync a folder

```bash
aws --profile aurora --endpoint-url https://a-s3.aur.lu s3 sync ./local-folder s3://my-bucket/
```

### Download a file

```bash
aws --profile aurora --endpoint-url https://a-s3.aur.lu s3 cp s3://my-bucket/file.txt ./local-file.txt
```
