aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

RDS add-option-to-option-group - can't add sqlserver_backup_restore

Open wesseljt opened this issue 10 years ago • 3 comments

I am having an issue with adding an RDS option group (sqlserver_backup_restore) using the rds add-option-to-option-group cli command.

See example below:

Command: aws rds add-option-to-option-group --option-group-name sql-webdb1 --apply-immediately --options OptionName=SQLSERVER_BACKUP_RESTORE,OptionSettings=[Name=IAM_ROLE_ARN,Value=t]

Error: Invalid type for parameter OptionsToInclude[0].OptionSettings[0], value: Name=IAM_ROLE_ARN, type: <type 'unicode'>, valid types: <type 'dict'> Invalid type for parameter OptionsToInclude[0].OptionSettings[1], value: Value=1, type: <type 'unicode'>, valid types: <type 'dict'>

Any ideas? i also tried: OptionSettings=[{Name=IAM_ROLE_ARN,Value=t}]

wesseljt avatar Nov 30 '16 20:11 wesseljt

**note - works fine through the GUI

wesseljt avatar Nov 30 '16 20:11 wesseljt

Try surrounding the options with quotes, like so:

aws rds add-option-to-option-group --option-group-name sql-webdb1 --apply-immediately --options "OptionName=SQLSERVER_BACKUP_RESTORE,OptionSettings=[{Name=IAM_ROLE_ARN,Value=t}]"

JordonPhillips avatar Nov 30 '16 21:11 JordonPhillips

Perfect, that worked. Thanks!

wesseljt avatar Nov 30 '16 22:11 wesseljt