如何在 Amazon Aurora PostgreSQL 无服务器集群上创建初始数据库

时间:2021-05-10 21:12:52

标签: postgresql amazon-web-services serverless amazon-aurora

我使用

创建了一个无服务器数据库集群
aws rds create-db-cluster --db-cluster-identifier psql-test --engine aurora-postgresql --engine-version 10.12 --engine-mode serverless --scaling-configuration MinCapacity=2,MaxCapacity=4,SecondsUntilAutoPause=1000,AutoPause=true --enable-http-endpoint --master-username postgres --master-user-password password

应该使用哪个参数来包含初始数据库,就像这里可能的那样?

enter image description here

1 个答案:

答案 0 :(得分:1)

您可以在 official API documentation 或命令的帮助信息中找到此信息

但你必须使用 --database-name nameOfYourDB

--database-name (string)
      The name for your database of up to 64 alphanumeric  characters.  If
      you  do  not provide a name, Amazon RDS doesn't create a database in
      the DB cluster you are creating.