Django的:弹性魔豆 - 不能创建新的RDS数据库。 [DBSubnets:无效选项值] [英] Django: Elastic Beanstalk - cannot create new RDS database. [DBSubnets: Invalid option value]
问题描述
我用在EB CLI EB-创建
来旋转了一个新的应用环境。然而,当我试图创建一个新的数据库,它要求我从四个列表中选择至少至少有两个可用区域。
I used eb-create
in the EB CLI to spin up a new application environment. However, when I tried to create a new database, it required me to select at least at least two availability zones from a list of four.
两个我选择了它会用以下语言阻止我有一个错误不管:
No matter which two I selected it would stop me with an error using the following language:
DBSubnets: Invalid option value [...] Specify the VPC ID and make sure all subnets exist.
我试图使在VPC配置相同的选项,但有人告诉我这不可能在现有的环境下进行。我花了一段时间才能找到答案,所以我在这里张贴。
I tried enabling the same options in the VPC configuration, but I was told this couldn't be done on an existing environment. It took me a while to find the answer, so I am posting it here.
推荐答案
下面的EB CLI命令正常启动我的环境,并导致成功部署我的应用程序的:
The following EB CLI command properly initiated my environment and resulted in successful deployment of my application:
eb create --database.engine postgres
有,你可以从这里也提供了一些其他的设置。请参考文档获得更多的帮助。
There are a few other settings you can provide from here as well. Please refer to the docs for additional assistance.
这篇关于Django的:弹性魔豆 - 不能创建新的RDS数据库。 [DBSubnets:无效选项值]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!