# Log into Serverless Platform on a headless system

**URL:** <https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215>\
**Category:** Event Gateway\
**Created:** [July 24, 2018, 12:27pm UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215 "2018-07-24T12:27:29Z")\
**Posts on this page:** 7\
**Page:** 1

<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 24, 2018, 12:27pm UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/1 "2018-07-24T12:27:29Z")

</div>

I am looking at using the Serverless Dashboard and Platform for an application I am building but hit a little roadblocak wrt the need to login. Currently all my deployments happen via a headless CI/CD process (GitLab runner), so I need some alternate way to authenticate to allow my services to be added to the application on the platform. Does anyone know of any alternative such as environment variables I could use by any chance?

---

<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 25, 2018, 11:51am UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/2 "2018-07-25T11:51:58Z")

</div>

I guess this is a slightly more difficult problem than I originally thought? If it helps I did find the `.serverless.rc` file in my home directory from doing a login on my dev machine. Not sure how to re-use that as I can see there are credentials?

---

<div class="post-metadata">

**Author:** ![alexdebrie1](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/alexdebrie1/32/899_2.png) [@alexdebrie1](https://forum.serverless.com/u/alexdebrie1)\
**Post date:** [August 1, 2018, 12:05pm UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/3 "2018-08-01T12:05:04Z")

</div>

Hey @garethmcc. Great question, and I’ll work on adding this to our docs.

To publish with a CI/CD system, you can set the `SERVERLESS_ACCESS_KEY` environment variable. This value should be an access key that you create in the “secure” tab in the Serverless Dashboard. The access key must belong to the tenant in which you are publishing your service.

Let me know if that helps!

---

<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:** [August 1, 2018, 12:28pm UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/4 "2018-08-01T12:28:54Z")

</div>

Thanks Alex. I actually did not even see the tab at the top to be honest. I’ll feedback once I get it working. Thanks for the input.

---

<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:** [August 1, 2018, 12:53pm UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/5 "2018-08-01T12:53:51Z")

</div>

I added the required config values in my serverless.yml, created a key from the dashboard UI, and added the SERVERLESS\_ACCESS\_KEY environment variable to the CI process but it still has not shown up on the dashboard. A verbose logging of the SLS deployment shows no confirmation that it logged in. I added the `sls login` command as well but all it did was ask me to open my browser and waited. It seems the deploy is just not logging in for some reason with the SERVERLESS\_ACCESS\_KEY set.

---

<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:** [August 2, 2018, 7:01am UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/6 "2018-08-02T07:01:47Z")

</div>

@alexdebrie1 Does it perhaps only add the service to the dashboard on the initial stack create and not on subsequent updates to the stack?

---

<div class="post-metadata">

**Author:** ![BDQ](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/bdq/32/2357_2.png) [@BDQ](https://forum.serverless.com/u/BDQ)\
**Post date:** [August 3, 2018, 12:22pm UTC](https://forum.serverless.com/t/log-into-serverless-platform-on-a-headless-system/5215/7 "2018-08-03T12:22:18Z")

</div>

I’m having the same issue where the app isn’t appearing the dashboard. I tried setting the `SERVERLESS_ACCESS_KEY` env var too.

I’m also only updating an existing app, not creating it from fresh - so maybe thats the problem?
