是否可以在不使用 NAT 网关的情况下在自定义私有 VPC 中部署 EB 应用程序?我想使用 AWS API Gateway 作为应用程序的公共入口点,同时保持服务的私有性。设置完所有内容后,我的环境不断失败:
The EC2 instances failed to communicate with AWS Elastic Beanstalk, either because of configuration problems with the VPC or a failed EC2 instance. Check your VPC configuration and try launching the environment again.
Run Code Online (Sandbox Code Playgroud)
VPC 包括:
我使用的模板是来自 EB 示例存储库的vpc-private.yaml。
EB 应用程序是一个多容器 docker 应用程序,带有一个 Nginx 反向代理和一个运行 uWSGI 的 Flask 应用程序(类似于这个配置)。我使用的是内部网络负载均衡器,并且没有为实例分配公共 IP 地址。Docker 映像托管在 AWS ECR 中。
论坛中的一个常见答案似乎是拥有一个带有 NAT 的公共子网以允许 Internet …