I can't seem to create a tag on a resource if the value contains a quote. For example:
aws ec2 create-tags --resource $someResource --tags 'Key=mykey,Value={"json":"value"}'
fails with:
Error parsing parameter '--tags': should be: Key value pairs, with multiple values separated by a space.
But if I run it without the quotes in the value, it succeeds:
aws ec2 create-tags --resource $someResource --tags 'Key=mykey,Value={json:value}'
I've tried a few different combinations of quoting/escaping, but I just can't seem to set the JSON value from the CLI.
For completeness, I updated my tools yesterday:
aws --version
aws-cli/1.3.6 Python/2.7.5 Darwin/13.1.0
Thanks!