I\'m writing integration tests using LocalStack to mock out my calls to Kinesis. I\'ve created a Kinesis client, but when I try to put records on Kinesis I get an error:
I had a similar issue while connecting Kinesis over localstack locally. I was using the v2 SDK java library.
Root cause
By default, kinesalite doesn't support CBOR and should be disabled to make it run. Internet is flooded with flags to disable CBOR but none of them worked for me.
You have to do two things:
AWS_CBOR_DISABLE=true
to tell localstack to stop usingaws.cborEnabled=false
to tell AWS SDK to stop using it.In my case, I was stuck with the SDK flag which is referred in software.amazon.awssdk.core.SdkSystemSetting