Search code examples
node.jsaws-sdkaws-sdk-nodejsamazon-kinesislocalstack

Can not override DynamoDB endpoint for Kinesis Consumer


Can not set up my local environment through aws-sdk, localstack and aws-kcl. After creating the consumer and trying to run it on my local environment I am getting an error that my credentials are incorrect. So Kinesis consumer always go to the real Amazon DynamoDB, and I can not point it to my localstack dynamodb. The question is: how can I point it to my local dynamodb?


Solution

  • I believe there are a few issues currently with connecting the multi lang daemon with the Kinesis Consumer Library, but I believe the settings you are looking for are buried within the kcl.properties, by adding these settings:

    kinesisEndpoint = http://localhost:4568
    dynamoDBEndpoint = http://localhost:4569
    

    It should make the Multi Lang Daemon point to your local instances of kinesis and dynamo.

    I've tried this multiple times with DotNet and it seems to be having issues further down the pipeline, but for now I hope this helps!