我正在使用Serverless部署我的AWS cloudformation堆栈。在我的一张桌子上,我通过“ StreamEnabled”启用了流:true。启用此功能后,我在部署时遇到错误:Encountered unsupported property StreamEnabled
。
如果删除该属性,则会收到验证异常:ValidationException: Stream StreamEnabled was null
。
我发现一个git问题已得到解决,并且显然已经得到解决(here),但是升级到v1.3之后,我在部署时仍然遇到相同的错误。
任何人都可以提供有关问题可能是什么的见解吗?
答案 0 :(得分:0)
默认情况下启用。您可以从外壳检查它:
aws dynamodbstreams list-streams
{
"Streams": [
{
"TableName": "MyTableName-dev",
"StreamArn": "arn:aws:dynamodb:eu-west-2:0000000000000:table/MyTableName-dev/stream/2018-10-26T15:06:25.995",
"StreamLabel": "2018-10-26T15:06:25.995"
}
]
}
并且:
aws dynamodbstreams describe-stream --stream-arn "arn:aws:dynamodb:eu-west-2:00000000000:table/MyTableName-dev/stream/2018-10-26T15:06:25.995"
{
"StreamDescription": {
"StreamLabel": "2018-10-26T15:06:25.995",
"StreamStatus": "ENABLED",
"TableName": "MyTableName-dev",
"Shards": [
{
"ShardId": "shardId-000000000000000-0000000f",
"SequenceNumberRange": {
"StartingSequenceNumber": "00000000000000000000000"
}
}
],
"CreationRequestDateTime": 1540566385.987,
"StreamArn": "arn:aws:dynamodb:eu-west-2:0000000000000000:table/MyTableName-dev/stream/2018-10-26T15:06:25.995",
"KeySchema": [
{
"KeyType": "HASH",
"AttributeName": "application_id"
}
],
"StreamViewType": "KEYS_ONLY"
}
}
这不是解决方案,但发现我意识到自己没有问题。