Serverless package should not require AWS credentials
See original GitHub issueAs 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:
- Created 6 years ago
- Reactions:6
- Comments:15 (11 by maintainers)
@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
andsls deploy
command?@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.