# Could not find access key

**URL:** <https://forum.serverless.com/t/could-not-find-access-key/8840>\
**Category:** Serverless Framework\
**Created:** [July 20, 2019, 7:29pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840 "2019-07-20T19:29:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krupadharmik](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/krupadharmik/32/3482_2.png) [@Krupadharmik](https://forum.serverless.com/u/Krupadharmik)\
**Post date:** [July 20, 2019, 7:29pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/1 "2019-07-20T19:29:11Z")

</div>

![IMG-20190720-WA0001](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/d/dde509534677dc502b86178571ac53452285953f.jpeg)

I already configure to AWS BUT when I run serverless command it will give me error

Could not find an access key for tenant tiege-endpoints-app. Log out and log in again to create a new access key for this tenant.

```
 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
```

---

<div class="post-metadata">

**Author:** ![buggy](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/buggy/32/177_2.png) [@buggy](https://forum.serverless.com/u/buggy)\
**Post date:** [July 22, 2019, 1:48pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/2 "2019-07-22T13:48:55Z")

</div>

Have a look at [https://serverless.com/framework/docs/providers/aws/guide/credentials#using-aws-access-keys](https://serverless.com/framework/docs/providers/aws/guide/credentials#using-aws-access-keys)

---

<div class="post-metadata">

**Author:** ![Krupadharmik](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/krupadharmik/32/3482_2.png) [@Krupadharmik](https://forum.serverless.com/u/Krupadharmik)\
**Post date:** [July 22, 2019, 5:15pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/3 "2019-07-22T17:15:52Z")

</div>

I created access key and secret key for tenant althout it is giving me same error  
I am running in dev enviorment.

---

<div class="post-metadata">

**Author:** ![wenindoubt](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/wenindoubt/32/3410_2.png) [@wenindoubt](https://forum.serverless.com/u/wenindoubt)\
**Post date:** [July 22, 2019, 5:29pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/4 "2019-07-22T17:29:15Z")

</div>

Check whether your environment variables are set:

```
$ env | grep -i aws

AWS_ACCESS_KEY_ID=XXXXXXXXXXXXXXXXX
AWS_SECRET_ACCESS_KEY=YYYYYYYYYYYYYYYYYYYYYYYYY

```

If the command above returns nothing, then take a look at the solution @buggy provided to set them properly.

---

<div class="post-metadata">

**Author:** ![Krupadharmik](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/krupadharmik/32/3482_2.png) [@Krupadharmik](https://forum.serverless.com/u/Krupadharmik)\
**Post date:** [July 22, 2019, 5:44pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/5 "2019-07-22T17:44:34Z")

</div>

yes it is returning .  
AWS\_SECRET\_ACCESS\_KEY=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*Be

AWS\_ACCESS\_KEY\_ID=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*W2

---

<div class="post-metadata">

**Author:** ![Krupadharmik](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/krupadharmik/32/3482_2.png) [@Krupadharmik](https://forum.serverless.com/u/Krupadharmik)\
**Post date:** [July 22, 2019, 5:46pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/6 "2019-07-22T17:46:16Z")

</div>

What is the next step : as it is return same error again

Could not find an access key for tenant tiege-endpoints-app. Log out and log in again to create a new access key for this tenant.

---

<div class="post-metadata">

**Author:** ![garethmcc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/garethmcc/32/2276_2.png) [@garethmcc](https://forum.serverless.com/u/garethmcc)\
**Post date:** [July 22, 2019, 6:25pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/7 "2019-07-22T18:25:34Z")

</div>

The details it is asking for is to access your Serverless account. If you enter `serverless login` at the CLI it will open a browser to allow you to login. Alternatively, you can remove the `app` and `tenant` (or `org`) properties from your `serverless.yml` so that it will stop trying to connect to your Serverless account

---

<div class="post-metadata">

**Author:** ![Krupadharmik](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/krupadharmik/32/3482_2.png) [@Krupadharmik](https://forum.serverless.com/u/Krupadharmik)\
**Post date:** [July 22, 2019, 6:51pm UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/8 "2019-07-22T18:51:29Z")

</div>

Thanks. I removed app and tenant properties.  
after run serverless deploy command it is giving me below error :

ServerlessError: ‘configure’ not a valid key=value pair (missing equal-sign) in Authorization header: ‘AWS4-HMAC-SHA256 Credential=aws configure list/20190722/us-east-1/cloudformation/aws4\_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*’.

---

<div class="post-metadata">

**Author:** ![PatriciaDaoust](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@PatriciaDaoust](https://forum.serverless.com/u/PatriciaDaoust)\
**Post date:** [August 17, 2019, 2:53am UTC](https://forum.serverless.com/t/could-not-find-access-key/8840/9 "2019-08-17T02:53:21Z")

</div>

To find your Access Key and Secret Access Key.

1. Log in to your AWS Management Console.
2. Click on your user name at the top right of the page.
3. Click on the Security Credentials link from the drop-down menu.
4. Find the Access Credentials section, and copy the latest Access Key ID.  
[https://docsbay.net/how-do-i-find-my-aws-access-key-and-secret-access-key](https://docsbay.net/how-do-i-find-my-aws-access-key-and-secret-access-key)
