Sco*_*ith 5 postgresql amazon-web-services amazon-aurora
当 --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
Run Code Online (Sandbox Code Playgroud)
错误:
An error occurred (InvalidParameterCombination) when calling the CreateDBInstance operation:
Invalid storage type for DB engine manfred: aurora
Run Code Online (Sandbox Code Playgroud)
什么是manfred:?
--storage-type我已经尝试了我看到的所有记录值( standard、io1和gp2),它们都会生成错误:
An error occurred (StorageTypeNotSupported) when calling the CreateDBInstance operation:\n
Invalid storage type: XXX
Run Code Online (Sandbox Code Playgroud)
我还没有找到从 CLI 创建 aurora postgres 数据库的单个示例。如有任何建议,我们将不胜感激。
小智 0
正如已经提到的,您需要删除 --allocated-storage 。
您需要添加 --db-cluster-identifier 参数,以便 AWS 知道将实例与哪个 Aurora 集群关联。这也是它知道 --allocated-storage 不适用的方式,以及 Aurora 实例与 RDS 实例所需或允许的参数的任何其他差异。
如果您尚未运行 create-db-cluster,则必须先执行此操作,以便为 create-db-instance --db-cluster-identifier 填写 DBClusterIdentifier 值。
我从不使用 --availability-zone 参数。Aurora 已经知道与集群关联的 3 个可用区。它会自动选择其中之一。没有必要让自己面临潜在的错误,因为集群使用了 -1a、-1c 和 -1e,而您尝试对实例使用 -1b。
| 归档时间: |
|
| 查看次数: |
1513 次 |
| 最近记录: |