[英]How to update a private server?
I have a Django web application, running on AWS Elastic Beanstalk, inside of an EC2 linux instance.我有一个 Django web 应用程序,在 AWS Elastic Beanstalk 上运行,在 EC2 linux 实例内部。 Only the load balancer is accessible to the internet, for security reasons.出于安全原因,只有负载均衡器可以访问 Internet。 Deployment to the EC2 app server is facilitated by Elastic Beanstalk, but new packages added to the repository can't be installed without an internet connection. Elastic Beanstalk 有助于部署到 EC2 应用程序服务器,但如果没有 Internet 连接,则无法安装添加到存储库的新包。
What is the standard way to automatically update without an internet connection?在没有互联网连接的情况下自动更新的标准方法是什么?
Should I just create another EC2 and use it as a proxy server?我应该创建另一个 EC2 并将其用作代理服务器吗? How can I configure this?我该如何配置?
Are there any references on this topic?有没有关于这个主题的参考资料?
Typically NAT gateway is used for that:通常NAT 网关用于:
You can use a network address translation (NAT) gateway to enable instances in a private subnet to connect to the internet or other AWS services, but prevent the internet from initiating a connection with those instances.您可以使用网络地址转换 (NAT) 网关使私有子网中的实例能够连接到 Internet或其他 AWS 服务,但阻止 Internet 启动与这些实例的连接。
There are also NAT instances which also can be used for the same purpose.还有一些NAT 实例也可用于相同目的。 However NAT gateway is a managed and scalable service and is usually preferred over NAT instances.但是,NAT 网关是一种托管且可扩展的服务,通常比 NAT 实例更受欢迎。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.