CreateDBInstance operation: Character sets not supported on create for engine: mysql
I was trying to use --character-set-name utf8 when using aws cli to spin up a database instance. But I am getting this below error unless I remove the --character-set-name directive.
$ aws rds create-db-instance --engine MySQL \
--license-model general-public-license \
--engine-version 5.6.19 \
--auto-minor-version-upgrade \
--multi-az \
--db-security-groups sg-xxxxxxxx \
--db-instance-class db.m3.medium \
--db-name magento-dbc \
--allocated-storage 100 \
--master-username test \
--master-user-password test \
--character-set-name utf8
A client error (InvalidParameterValue) occurred when calling the CreateDBInstance operation: Character sets not supported on create for engine: mysql and version5.6.19
As per the documentation here http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/CLIReference-cmd-CreateDBInstance.html
Specifies the Oracle character set that the DB instance will use. For a list of supported character sets, go to Appendix: Oracle Character Sets Supported in Amazon RDS. Oracle only.
For MySQL you want to set the character_set_database parameter as part of a parameter group.
Thanks for the clarification. Sounds like the CLI is working as expected.
@shlomoswidler Thanks. But I use aws cli verion 1.4.2 and the manpage doesn't specify it's Oracle only - and majority of the people who uses this CLI tool is not going to google the web version of the help but rather use the manpage help.
@jamesls this is still a bug to me. aws manpage content needs to be in sync with the web version. See below.
$ pip freeze | grep aws
awscli==1.4.2
$ aws rds create-db-instance help
--character-set-name (string)
For supported engines, indicates that the DB instance should be
associated with the specified CharacterSet.
--publicly-accessible | --no-publicly-accessible (boolean)
Specifies the accessibility options for the DB instance. A value of
true specifies an Internet-facing instance with a publicly resolv-
able DNS name, which resolves to a public IP address. A value of
false specifies an internal instance with a DNS name that resolves
to a private IP address.
Default: The default behavior varies depending on whether a VPC has
been requested or not. The following list shows the default behavior
in each case.
o Default VPC: true
o VPC: false
If no DB subnet group has been specified as part of the request and
the --publicly-accessible value has not been set, the DB instance
will be publicly accessible. If a specific DB subnet group has been
specified as part of the request and the --publicly-accessible value
has not been set, the DB instance will be private.
--tags (list)
A list of tags.
Shorthand Syntax:
Key value pairs, with multiple values separated by a space.
--tags Key=string,Value=string Key=string,Value=string
JSON Syntax:
[
{
"Key": "string",
"Value": "string"
}
...
]