John@MacBook-Pro:~/IWG/code$ aws rds restore-db-cluster-to-point-in-time \
--restore-type full-copy \
--source-db-cluster-identifier mySourceCluster \
--db-cluster-identifier myTargetCluster \
--restore-to-time 2022-09-01T08:00:00Z \
--vpc-security-group-ids sg-07102f7235a9363d3 sg-3bd3ce7f \
--port 5432 \
--db-subnet-group-name default-vpc-5321e635 \
--no-enable-iam-database-authentication \
--serverless-v2-scaling-configuration MinCapacity=1.0,MaxCapacity=4.0
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
Unknown options: --serverless-v2-scaling-configuration, MinCapacity=1.0,MaxCapacity=4.0
John@MacBook-Pro:~/IWG/code$这到底是怎么回事?它们是什么意思?
Unknown options: --serverless-v2-scaling-configuration, MinCapacity=1.0,MaxCapacity=4.0这正是AWS官员建议我们做的事情:
--serverless-v2-scaling-configuration MinCapacity=1.0,MaxCapacity=4.0--无服务器-v2-缩放-配置(结构)
包含Aurora无v2 DB集群的缩放配置。
有关更多信息,请参见在Amazon用户指南中使用v2。
MinCapacity -> (双)
Aurora无v2集群中DB实例的Aurora容量单元(ACU)的最小数量。您可以在半步增量中指定ACU值,例如8、8.5、9等等。您可以使用的最小值是0.5。
MaxCapacity -> (双)
Aurora无v2集群中DB实例的极光容量单元(ACU)的最大数量。您可以在半步增量中指定ACU值,例如40、40.5、41等等。您可以使用的最大值是128。
速记语法:
MinCapacity=double,MaxCapacity=double
发布于 2022-09-03 10:13:00
这与AWS版本有关。它曾经是:
aws --version
aws-cli/2.4.7 Python/3.8.8 Darwin/20.3.0 exe/x86_64 prompt/off在将其更新为:
aws --version
aws-cli/2.7.29 Python/3.9.11 Darwin/20.3.0 exe/x86_64 prompt/off我再也看不见错误了。
https://stackoverflow.com/questions/73568410
复制相似问题