Support for streams of local dynamodb?

I can't seem to get the stream support working in local local dynamo, are they supported? The only sign that I was able to detect is the last point at http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html#Tools.DynamoDBLocal.Differences

When using local dynamic scrap, it seems that StreamSpecification is ignored, so when you call createTable or describeTable

The following code returns LastStreamArn with the dynamodb managed service, but not locally dynamically:

ddb.createTable({ TableName: 'streaming_test', AttributeDefinitions: [ { AttributeName: 'id', AttributeType: 'S' } ], KeySchema: [ { AttributeName: 'id', KeyType: 'HASH' } ], ProvisionedThroughput: { ReadCapacityUnits: 5, WriteCapacityUnits: 5 }, StreamSpecification: { StreamEnabled: true, StreamViewType: 'NEW_AND_OLD_IMAGES' } }, function (err, data) { if (err) { console.log(err, err.stack) } else { // data.TableDescription.StreamSpecification and // data.TableDescription.LatestStreamArn are undefined // for dynamodb local console.log(data) } }) 
+7
amazon-web-services amazon-dynamodb dynamo-local
source share
1 answer

I can not reproduce your problem. The steps I took:

  • Download DynamoDB Local from here
  • Run the local DynamoDB interface using java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -inMemory -sharedDb
  • Go to http: // localhost: 8000 / shell /
  • Paste the code below and press the play button. The only difference between what I wrote and your code above is that I replaced ddb with dynamodb .

When I did this, I received a non-empty and non-empty NewStreamArn from arn:aws:dynamodb:ddblocal:000000000000:table/streaming_test/stream/2017-02-12T08:39:03.722 .

 dynamodb.createTable({ TableName: 'streaming_test', AttributeDefinitions: [ { AttributeName: 'id', AttributeType: 'S' } ], KeySchema: [ { AttributeName: 'id', KeyType: 'HASH' } ], ProvisionedThroughput: { ReadCapacityUnits: 5, WriteCapacityUnits: 5 }, StreamSpecification: { StreamEnabled: true, StreamViewType: 'NEW_AND_OLD_IMAGES' } }, function (err, data) { if (err) { console.log(err, err.stack) } else { // data.TableDescription.StreamSpecification and // data.TableDescription.LatestStreamArn are undefined // for dynamodb local console.log(data) } }) 
+5
source share

All Articles