I have a Python Serverless project that uses a private Git (on Github) repo.
Requirements.txt file looks like this:
itsdangerous==0.24
boto3>=1.7
git+ssh://[email protected]/company/repo.git#egg=my_alias
Configurations of the project mainly looks like this
plugins:
- serverless-python-requirements
- serverless-wsgi
custom:
wsgi:
app: app.app
packRequirements: false
pythonRequirements:
dockerizePip: true
dockerSsh: true
When I deploy using this command:
sls deploy --aws-profile my_id --stage dev --region eu-west-1
I get this error:
Command "git clone -q ssh://[email protected]/company/repo.git /tmp/pip-install-a0_8bh5a/my_alias" failed with error code 128 in None
What am I doing wrong? I'm suspecting either the way I configured my SSH key for Github access or the configurations of the serverless package.
https://github.com/company/repo.git#egg=my_aliasand ready. - hoeflingdockerSsh: true, it maps the keys from outside to inside the container.M-T-A, can you add--verboseflag to your deploy command and share the output of the same - Tarun Lalwaniserverless-python-requirementsdo you use? - Andrii Maletskyisls deployin interactive shell or via some build system? If you run it in console, you can authenticate interactively using git+https:// - Andrii Maletskyi