简体   繁体   English

在Elastic Beanstalk上使用Docker部署Flask应用程序:资源创建取消错误

[英]Deploying Flask app with Docker on Elastic Beanstalk: resource creation cancelled error

I am following along this tutorial for deploying a Flask app with Docker http://blogs.aws.amazon.com/application-management/post/Tx1ZLAHMVBEDCOC/Dockerizing-a-Python-Web-App 我正在按照本教程使用Docker部署Flask应用程序http://blogs.aws.amazon.com/application-management/post/Tx1ZLAHMVBEDCOC/Dockerizing-a-Python-Web-App

I've got everything working great on local. 我在本地一切工作都很好。 However when i upload the code to elastic beanstalk and launch the app I get the following errors: 但是,当我将代码上传到elastic beanstalk并启动应用程序时,出现以下错误:

Creating EIP failed Reason: Resource creation cancelled
Creating security group named: xyz failed Reason: Resource creation cancelled
Stack named 'xyz-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [NewSignupTopic, StartupSignupsTable, AWSEBSecurityGroup, NewSignupQueue, AWSEBEIP]

I've tried modifying my choices in the upload flow -- eg not selecting an RDS, selecting a single instance and so on. 我尝试修改上传流程中的选择-例如,不选择RDS,选择单个实例等等。 But these don't seem relevant. 但是这些似乎无关紧要。 Any pointers are greatly appreciated! 任何指针,不胜感激!

.

I've also been following that tutorial and had the exact same problem. 我也一直在关注该教程,并且遇到了完全相同的问题。 For me, it turns out that the user I had associated with the eb CLI did not have the appropriate privileges to create the desired resources. 对我来说,事实证明,我与eb CLI关联的用户没有创建所需资源的适当特权。 Make sure that you've granted DynamoDB:CreateTable and SNS:CreateTopic permissions to that user. 确保您已向该用户授予DynamoDB:CreateTable和SNS:CreateTopic权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Elastic Beanstalk 部署 Flask 应用程序时遇到问题 - Trouble deploying Flask app using Elastic Beanstalk 在 AWS Elastic Beanstalk 中部署 Flask 应用程序 - Deploying Flask App in AWS Elastic Beanstalk 在 Elastic Beanstalk 上部署 Django 应用程序时出错 - Error Deploying Django App on Elastic Beanstalk 如何在部署 Flask 应用程序时修复此 Elastic Beanstalk 错误:在您的系统上找不到 Python 3.7.0 - How do I fix this Elastic Beanstalk error when deploying a Flask app: Python 3.7.0 was not found on your system 通过与S3交互的Elastic Beanstalk部署Flask应用 - Deploying Flask app to via Elastic Beanstalk which interacts with S3 使用 CLI 将 flask 应用程序部署到弹性 beanstalk 时出现 502 错误 - 502 error deploying flask application to elastic beanstalk using CLI 将带有熊猫的Flask应用程序部署到Elastic Beanstalk - Deploying Flask Application with pandas to Elastic Beanstalk 使用 awsebcli 部署 Elastic Beanstalk 应用程序时出现“操作被拒绝”错误 - 'Operation Denied' Error when deploying an Elastic Beanstalk app using awsebcli 将 django 应用程序部署到 Elastic Beanstalk - requirements.txt 错误 - Deploying django app to Elastic Beanstalk - requirements.txt error 尝试将Flask App部署到AWS Elastic Beanstalk时出错 - Error when Trying to Deploy Flask App to AWS Elastic Beanstalk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM