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

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sqs/send-message.html#examples

Open manuelh2410 opened this issue 6 years ago • 3 comments

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sqs/send-message.html#examples

Input file (send-message.json):

{ "City": { "DataType": "String", "StringValue": "Any City" }, "Greeting": { "DataType": "Binary", "BinaryValue": "Hello, World!" }, "Population": { "DataType": "Number", "StringValue": "1250800" } }

==== Is incorrect. Running the command as indicated in the current version of the documentation, yields :

C:>aws sqs send-message --queue-url https://sqs.us-east-1.amazonaws.com/"aws account ID #" /manuel_Queue --message-body "testmessageaws" --delay-seconds 10 --message-attributes "file://D:/message.json"

Invalid base64: "Hello, World!"

===

"BinaryValue": "Hello, World!", should be "StringValue": "Hello, World!"

=== After making this change, the command succeeds without issue.

manuelh2410 avatar Nov 12 '20 10:11 manuelh2410

Thanks for the find, @manuelh2410!

kdaily avatar Nov 16 '20 18:11 kdaily

closing issue

manuelh2410 avatar Jan 13 '21 23:01 manuelh2410

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jan 13 '21 23:01 github-actions[bot]