postgresql - 如何在 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
应该使用哪个参数来包含像这里可能的初始数据库?
解决方案
您可以在官方 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.
推荐阅读
- java - 在Java中使用流和lambda查找(树)映射中的所有最大值
- git - 为什么我的同事在执行 git pull 时得到了尚未合并到主分支中的功能分支?
- python - 如何在 box-cox 变换中获得多个 lambda 值?
- r - R中的MCMC Changepoint模型
- javascript - 中断 JavaScript 后返回项目
- python - 检查数字是否为素数的最佳方法?
- mysql - 在Mysql中选择具有多个WHERE子句的行
- python - 如何从图像中裁剪轮廓部分(超过 1 个)并为颜色直方图选择水平部分
- python - file.py 运行但 file.exe 不运行
- ansible - Ansible 中的变量替换