2

I am running the following command using aws cli but it is complaining about unknown options. The exact error is: "Unknown options: true"

aws rds reboot-db-instance --db-instance-identifier 'myinstance' --force-failover true --profile myaccount

This instance is set for multi-AZ.

4

1 回答 1

2

This error occurs in the AWS CLI when unknown options are found. It can return multiple "unknown" strings joined by a comma, as demonstrated here. In your case, the cli is trying to parse true as an option and failed because --force-failover does not require a value.

From the documentation:

  reboot-db-instance
--db-instance-identifier <value>
[--force-failover | --no-force-failover]

The brackets indicate that you can specify --force-failover or --no-force-failover, and also that no value is required for either since it does not specify <value>.

Just remove "true" and you should be set.

于 2014-10-14T20:44:17.947 回答