> For the complete documentation index, see [llms.txt](https://wiki.robmurtagh.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.robmurtagh.com/aws/s3.md).

# S3

## Copy

```bash
aws s3 cp s3://example-src/ s3://example-dest/example-src/ --recursive
```

## Delete folder

```bash
aws s3 rm s3://example-bucket/example-folder/2018 --recursive --dryrun
```

## Get bucket size

```bash
aws s3 ls --summarize --human-readable --region eu-west-1 --recursive s3://example-bucket/
```

## Get bucket region

```bash
aws s3api get-bucket-location --bucket example-bucket
```
