craftship / codebox-npm

Serverless private npm registry using https://serverless.com/

Home Page:http://codebox.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't use custom profiles

hassankhan opened this issue · comments

This is a Bug Report

Description

For bug reports:

  • What went wrong?
    Codebox failed to deploy.

  • What did you expect should have happened?
    I expected Codebox to use the profile value from my serverless.yml.

  • What was the config / env variables you used?

  • What stacktrace or error message did you
    experience?

$ sls deploy --stage prod
Serverless: Bundling with Webpack...
Time: 2148ms
              Asset     Size  Chunks             Chunk Names
authorizerGithub.js  15.1 kB       0  [emitted]  authorizerGithub
  distTagsDelete.js  27.6 kB       1  [emitted]  distTagsDelete
     distTagsGet.js  35.9 kB       2  [emitted]  distTagsGet
     distTagsPut.js  27.8 kB       3  [emitted]  distTagsPut
             get.js  36.1 kB       4  [emitted]  get
             put.js  38.9 kB       5  [emitted]  put
          tarGet.js  25.5 kB       6  [emitted]  tarGet
         userPut.js    11 kB       7  [emitted]  userPut
Serverless: Packing external modules: babel-polyfill@^6.22.0, github@^8.1.1, node-fetch@^1.6.3
Serverless: Packaging service...
Serverless: Could not create AWS Logging SNS Topic: Missing credentials in config

  Credentials Error --------------------------------------

     Missing credentials in config

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

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues

     Please report this error. We think it might be a bug.

  Your Environment Information -----------------------------
     OS:                 darwin
     Node Version:       6.7.0
     Serverless Version: 1.8.0

I managed to work around it by running export AWS_PROFILE="MyProfile"and then redeploying.

Additional Data

  • NPM CLI version you are using: 3.10.3
  • Serverless version you're using: 1.8.0
  • Node version you're using: 6.7.0

Fixed this and published a release, thanks for reporting this one 👍

No worries, just giving it a good go now, will report with anything else I find. Also, thanks so much for putting the time into making this, really really appreciated!!!