The issue:
CI/CD (github) deployments return the following error. I’m not sure how to look into the “complete log of this run” and the deployments run fine when I run sls deploy:
build step: npm ci --if-present --unsafe-perm
npm ERR! Cannot read property 'serverless-python-requirements' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-09-06T17_25_15_883Z-debug.log
build step failed: npm ci --if-present --unsafe-perm
How to recreate:
Clone the following using the Serverless Framework Python Flask API on AWS. I used this:
npm i -g serverless && serverless \
--org=XXXXX \
--app=test \
--name=test \
--template=aws-python-flask-api
Configure credentials provider
Run SLS Deploy (should work fine)
Configure CI/CD pipeline with Github
Push a commit and the error shows in the build logs