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
gefragt vor 2 Jahren74 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen