Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change when using --noDeploy, it now requires valid aws credentials. #2648

Closed
gertjvr opened this issue Nov 7, 2016 · 9 comments
Closed
Labels
Milestone

Comments

@gertjvr
Copy link
Contributor

gertjvr commented Nov 7, 2016

This is a Bug Report

Description

Running serverless deploy --noDeploy throws error requiring valid aws credentials this wasn't required in previous version v1.0.3 or v1.0.2

 sls deploy -v "--noDeploy"


  Error --------------------------------------------------

     ServerlessError: ServerlessError: The security token
     included in the request is invalid.

     For debugging logs, run again after setting SLS_DEBUG env var.

  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:                 win32
     Node Version:       4.6.1
     Serverless Version: 1.1.0

Additional Data

  • Serverless Framework Version you're using:
  • Operating System: Windows 10
  • Stack Trace: snippet above
  • Provider Error messages: ServerlessError: ServerlessError: The security token included in the request is invalid.
@laardee
Copy link
Member

laardee commented Nov 7, 2016

I noticed that the --noDeploy switch requires internet connection. I started to working on the fix for that master...laardee:deploy-offline , and it should fix also missing credentials issue, because after that fix no request is made to AWS when using the --noDeploy switch. @flomotlik, is there a reason why the request is made to AWS when using --noDeploy?

@rowanu
Copy link
Member

rowanu commented Nov 7, 2016

Just linking #2473 here - splitting build and deploy into distinct steps would fix this issue.

@laardee
Copy link
Member

laardee commented Nov 7, 2016

I noticed the same discussion also, that's why I haven't push the development of my branch any further.

@gertjvr
Copy link
Contributor Author

gertjvr commented Nov 7, 2016

That discussion has gone very quite, unsure which direction @flomotlik would like to go with it. I automated our serverless deployment packaging everything and running sls deploy. But there some big issues with consistency.

@flomotlik flomotlik added the bug label Nov 7, 2016
@flomotlik
Copy link
Contributor

I just checked and I got the same error in 1.0.3, but not 1.0.2. The problem is in this commit: 296810c

We need to return after writing to disk in case --noDeploy is set. And we need to add an integration test that makes sure this works. Added to bugs to fix.

@laardee
Copy link
Member

laardee commented Nov 7, 2016

@flomotlik, I could do this, is the fix master...laardee:deploy-offline that I already started to do something that I should continue with?

@flomotlik
Copy link
Contributor

@laardee yup that looks pretty reasonable. Could you open a PR with that so we can review. It would be great if we could add an integration test in the same repo, that makes sure this works without any credentials in place. Happy to help with that, we can discuss it in the PR.

@laardee
Copy link
Member

laardee commented Nov 7, 2016

@flomotlik, here is the PR #2651

@pmuens
Copy link
Contributor

pmuens commented Nov 18, 2016

Just did a code review. @eahefnawy will look into it as well. Will be resolved in one of the upcoming releases! 💪 @laardee thanks for working on the fix!

@pmuens pmuens added this to the 1.2 milestone Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants