Django的:弹性魔豆 - 不能创建新的RDS数据库。 [DBSubnets:无效选项值]弹性、选项、魔豆、数据库

由网友(败浪儿)分享简介:我用在EB CLI EB-创建来旋转了一个新的应用环境。然而,当我试图创建一个新的数据库,它要求我从四个列表中选择至少至少有两个可用区域。I used eb-create in the EB CLI to spin up a new application environment. However, when I t...

我用在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.

阅读全文

相关推荐

最新文章