I have used to be able to send a record to firehose without any problem like this
aws firehose put-record --delivery-stream-name my-stream --record='Data="{\"foor\":\"bar\"}"'
But since I have updated my cli to version 2 I am getting this error:
Invalid base64: "{"foor":"bar"}"
I have tried to convert {"foor":"bar"} to based64 but then I got InvalidArgumentException
aws firehose put-record --delivery-stream-name my-stream --record='Data=e1wiYXNkZlwiOlwidGVzdGFtXCJ9Ig=='
An error occurred (InvalidArgumentException) when calling the PutRecord operation: This operation is not permitted on KinesisStreamAsSource delivery stream type.