dynamo db local で動作するストリーム サポートを取得できないようですが、サポートされていますか? 私が見つけた唯一の兆候は、http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tools.DynamoDBLocal.html#Tools.DynamoDBLocal.Differencesの最後の箇条書きです。
dynamodb ローカルでは、StreamSpecification が無視されているように見えるため、createTable または describeTable を呼び出すときに LatestStreamArn がありません。
次のコードは、マネージ dynamodb サービスを含む LatestStreamArn を返しますが、dynamodb ローカルは返しません。
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)
}
})