如何使用Amazon AWS Elastic Beanstalk部署私有python pip依赖? [英] How to deploy private python pip dependency with Amazon AWS Elastic Beanstalk?

查看:179
本文介绍了如何使用Amazon AWS Elastic Beanstalk部署私有python pip依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将其中一个服务设置为AWS Elastic Beanstalk 时,出现问题。我们在私有存储库中设置的一个python pip依赖关系在部署过程中导致错误,因为不可访问用于点进程。 Bellow我介绍了我们如何解决这个问题。

When I tried to set one of the services into AWS Elastic Beanstalk, the problem appeared. One of our python pip dependencies set up on private repository was causing errors during deployment process, since it was not accessible for pip process. Bellow I present description how we solved this issue.

值得一提的是,还有其他解决方案将部署期间使用的SSH密钥绑定到应用程序项目git存储库。我发现他们有点脏,所以我想分享一下这个允许在S3桶中保持SSH密钥分离的应用程序git仓库。

It is worth to mention that there are other solutions that bind SSH keys used during deployment, to application project git repository. I find them a bit dirty, so I would like to share this one that allows to keep SSH keys separated in S3 bucket, separated from application git repository.

推荐答案

我无法评论,所以我回答了这个问题。 smentek 的答案非常详细,解决了这个问题。唯一缺少的部分是您需要将git包添加到配置中:

I cannot comment so I'm answering the question. smentek's answer is very detailed and solves the issue. The only missing part is that you need to add the git package to the config:

packages:
    yum:
        git-all: ""

files:
    "/root/.ssh/config":
# ...

默认情况下,Amazon Linux上没有安装Git。

Git isn't installed on Amazon Linux by default.

这篇关于如何使用Amazon AWS Elastic Beanstalk部署私有python pip依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆