Incompatibility with serverless CI/CD service
See original GitHub issueCompat with serverless CI/CD service
Serverless CI/CD run 3 commands
- npm install
- npm run test
- serverless deploy
We cannot change this commands, but we can create hooks before and after each one adding preinstall
, postinstall
, pretest
and posttest
custom scripts to package.json. Also using serverless-plugin-scripts we can add hooks before and after deploy.
Current behavior (if any)
When we add serverless client deploy --no-confirm
command after-deploy hook, the serverless virtual machine do not implement the autenthification setted in the dashboard and we get this error:
ServerlessError: AWS provider credentials not found. Learn how to set up AWS provider credentials in our docs here: http://slss.io/aws-creds-setup.
Proposed behavior
Run the pipeline in Serverless CI/CD service using plain serverless deploy
command. (without client
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Thanks for submitting this @fedeiglesias! I’ll look into how the credentials are made accessible there and get back to you on how this gets implemented.
@fernando-mc as you said, there was
app
andorg
value inserverless.yml
. Thank you for your big help!!!