首页 > 解决方案 > 如何在 Amazon Aurora PostgreSQL 无服务器集群上创建初始数据库

问题描述

我使用创建了一个无服务器数据库集群

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

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

在此处输入图像描述

标签: postgresqlamazon-web-servicesserverlessamazon-aurora

解决方案


您可以在官方 API 文档或命令的帮助信息中找到此信息

但是你必须使用--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.

推荐阅读