Unable to deploy strapi to AWS EBS

System Information
  • 4:
  • Linux:
  • Postgres:
  • 16.x.x:
  • 8.x.x:
  • 1.22.19:

Hi all, me and my team are unable to deploy a newly created Strapi application to elastic beanstalk. We have tried all approaches from directly deploying a newly created and working application on local to elastic beanstalk to using codepipeline to deploy that same application from s3 and github to elastic beanstalk. None of our approaches seem to work. It’s an error with a perfectly fine Procfile which only has web: npm run start.

Has anyone deployed strapi application to EBS? Can you help with the step-by-step guide as to how did you get it to work for EBS Linux v16? Currently my team was successful in deploying it to EC2 but for our production application we prefer EBS.

[ERROR] An error occurred during execution of command [app-deploy] - [Use NPM to install dependencies]. Stop running the command. Error: Command /bin/sh -c npm --production install failed with error signal: killed. Stderr:npm WARN config production Use --omit=dev instead.

And yes, I have already used unsafe-perm=true in .npmrc file