# Aws credentials error

**URL:** <https://forum.storj.io/t/aws-credentials-error/23180>\
**Category:** Developer Discussions\
**Tags:** linux\
**Created:** [July 6, 2023, 10:55pm UTC](https://forum.storj.io/t/aws-credentials-error/23180 "2023-07-06T22:55:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MMzF](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mmzf/32/1131_2.png) [@MMzF](https://forum.storj.io/u/MMzF)\
**Post date:** [July 6, 2023, 10:55pm UTC](https://forum.storj.io/t/aws-credentials-error/23180/1 "2023-07-06T22:55:40Z")

</div>

Hi there, i created an account, then a project and then created s3 credentials and set it up according to the guide, i tried recreating s3 credentials, also tried making api + s3 (i thought maybe s3 creation only might be bugged) i am getting

```auto
blohsh@rack:~$ aws s3 --endpoint-url=https://gateway.storjshare.io mb s3://data
make_bucket failed: s3://data An error occurred (InvalidAccessKeyId) when calling the CreateBucket operation: The Access Key Id you provided does not exist in our records.

```

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [July 7, 2023, 4:51am UTC](https://forum.storj.io/t/aws-credentials-error/23180/2 "2023-07-07T04:51:23Z")

</div>

Hello @MMzF,  
Welcome to the forum!

Please use `--endpoint` instead of `--endpoint-url`.

You may also fine tune the AWS CLI to use it more comfortable with Storj DCS without providing a lot of options every time:

> **[AWS CLI Advanced Options - Storj DCS Docs](https://docs.storj.io/dcs/getting-started/gateway-mt/aws-cli-advanced-options)**
>
> \- Storj DCS Docs
