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.

Incompatibility with serverless CI/CD service

See original GitHub issue

Compat 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fernando-mccommented, Apr 13, 2020

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.

0reactions
fedeiglesiascommented, Apr 15, 2020

@fernando-mc as you said, there was app and org value in serverless.yml. Thank you for your big help!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Incompatibility with serverless-plugin-aws-alerts #83 - GitHub
So I assume we need to add support for both plugins. I'm sure that both add resources that depend on the api gateway...
Read more >
Making Serverless CI/CD Easier with CircleCI ... - Amazon AWS
This procedure creates a sample serverless application using the Serverless Framework CLI, and deploys it into an Amazon Web Services (AWS) ...
Read more >
[REPEAT 1] CI/CD for serverless applications (SVS336-R1)
As developers have migrated to building serverless applications, they often wonder what has to change about their CI/CD workflows.
Read more >
TUTORIAL: Serverless CI/CD Security with AWS ... - LinkedIn
The Build security or Proact performs SAST or static scanning analysis of the code and security posture management.
Read more >
AWS Infrastructure Resources - Serverless Framework
This is where your AWS Lambda functions and their event configurations are ... The only exception (for backwards compatibility reasons) is the S3...
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