question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serverless package should not require AWS credentials

See original GitHub issue

As a Serverless developer, I want to run serverless package without specifying AWS credentials, so I don’t have to configure my cloud secrets in my build system, which is independent from my deployment system.

Since serverless create_domain is a separate step, creating the domain can be easily separated from creating and deploying the package. In our case, we created the domain once manually, and our CI system runs only serverless package to build and test the package, before our CD system installs it with serverless deploy. The serverless package step has nothing to do with our cloud infrastructure, so it should not need credentials to access it. It was working fine with serverless-domain-manager up until to version 1.1.18, but from 1.1.19 even the serverless package step requires AWS credentials, otherwise the getDomain call fails, and the “Cannot find specified domain name…” error is displayed.

Thank you for creating and maintaining this package.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
balassycommented, Feb 23, 2018

@elyobo Thanks for commenting on this issue. Could you please explain why it is more appropriate to closely tie the building step to the deploying step? In that case when should we run our tests? What is the reason behind having a separate sls package and sls deploy command?

1reaction
jconstance-amplifycommented, Mar 22, 2018

@oli-g Sure, let’s roll it back. If anyone here wants to submit a PR to that affect, that’d be great. Otherwise I’ll send something up sometime this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

`serverless package` now requires AWS credentials if a layer ...
Hi folks! I'm the author of serverless-jetpack and in upgrading my test fixture suite from serverless@1.67.0 to serverless@1.80.1 (which ...
Read more >
AWS Credentials - Serverless Framework
AWS Credentials. The Serverless Framework needs access to your cloud provider account so that it can create and manage resources on your behalf....
Read more >
Why would serverless package need creds? - Stack Overflow
"serverless package" requires AWS access if deploymentBucket provider config is used #4040. For now, you can hack the deployed server less ...
Read more >
AWS SAM prerequisites - AWS Serverless Application Model
Complete the following from the AWS Command Line Interface User Guide: Prerequisites to use the AWS CLI version 2 · Installing or updating...
Read more >
sam package - AWS Serverless Application Model
To package an AWS SAM application, use the sam package command from the AWS ... --no-progressbar, Do not display a progress bar when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found