AWS CLIrestore-db-cluster-from-snapshot¶设置的数据库名称不适用于aurora-mysql集群

问题描述

有人知道为什么restore-db-cluster-from-snapshot没有设置指定的--database-name吗?恢复的数据库仍具有原始数据库名称

ubuntu@vm:~$ aws rds --profile stg restore-db-cluster-from-snapshot  \
  --db-cluster-identifier staging-28-09-2020 \
  --snapshot-identifier arn:aws:rds:ap-southeast-2:111111111111:cluster-snapshot:myclustersnapshotcopy \
  --engine aurora-MysqL \
  --engine-version 5.7.MysqL_aurora.2.09.0 \
  --database-name staging \
  --db-subnet-group-name default-vpc \
  --vpc-security-group-ids {sg-0c4e5,sg-03c8caa}

看起来像是cli bug?我正在使用aurora-MysqL rds将快照从登台数据库还原到prod数据库,并且似乎无法更改登台数据库名称以进行还原。

我已经按照命令--database-name staging所示设置了标志。还有什么其他方法可以设置与快照中不同的数据库名称

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)