首页 > 解决方案 > 使用 AWS CLI 创建 AWS aurora postgres 实例的正确参数是什么?

问题描述

以下命令在 --engine 设置为时有效postgres,但是当我将其更改为aurora-postgresql(根据文档)时,我收到一个奇怪的错误:

aws rds create-db-instance \
    --db-name mydb1 \
    --db-instance-identifier mydb1 \
    --db-instance-class db.r5.large \
    --engine aurora-postgresql \
    --master-username postgres \
    --master-user-password XXXXX \
    --availability-zone us-east-1a \
    --db-subnet-group-name mydb-subnets-us-east-1 \
    --allocated-storage 100

错误:

An error occurred (InvalidParameterCombination) when calling the CreateDBInstance operation: 
Invalid storage type for DB engine manfred: aurora

是什么manfred:

我已经尝试了--storage-type我看到的所有记录值(standardio1gp2,它们都产生了错误:

An error occurred (StorageTypeNotSupported) when calling the CreateDBInstance operation:\n
Invalid storage type: XXX

我找不到从 CLI 创建 aurora postgres db 的单个示例。有人提出任何建议,我们将不胜感激。

标签: postgresqlamazon-web-servicesamazon-aurora

解决方案


推荐阅读