[英]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.