Elastic Beanstalk with git submodules - deployed code has no execute permissions

0

Hello, I Use Elastic Beanstalk to deploy a Python django server over AWS Linux 2 machine. My git project includes another git repository integrated as git submodule.

I followed these instructions. Specifically I configured:

  • .elasticbeanstalk/config.yml - include_git_submodules: true, branch: main (both under the global section)
  • .submodules file - auto-update=yes, branch=main under the relevant submodule.

Once I eb deploy the whole git repo including the submodule files are deployed successfully to the machine and are visible under /var/app/current. Testing the application throws exception indicating that a certain python module (py file) isn't available. I eb ssh to the machine and discovered that the whole submodule py files has not execute permissions (-rw------- ).

Other py files, not under the submodule has appropriate executable permissions (-rwxr-xr-x)

My Question: How to properly set/configure the submodule within the repo and/or the eb for proper deployment?

hoshmy
preguntada hace 2 años74 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas