gpt4 book ai didi

aws-cloudformation - StreamEnabled 表属性导致 Serverless 失败

转载 作者:行者123 更新时间:2023-12-03 07:16:00 25 4
gpt4 key购买 nike

我正在使用无服务器来部署我的 AWS cloudformation 堆栈。在我的一张 table 上,我通过“StreamEnabled”启用流:true。启用此功能后,我在部署时收到错误:遇到不受支持的属性 StreamEnabled

如果我删除该属性,则会收到验证异常:ValidationException: Stream StreamEnabled was null

我发现一个 git 问题已得到解决并且显然已修复 ( here ),但升级到 v1.3 后,我在部署时仍然遇到相同的错误。

任何人都可以提供有关问题所在的见解吗?

最佳答案

默认情况下启用。您可以从 shell 中检查它:

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"
}
}

这不是一个解决方案,但发现我意识到我没有问题。

关于aws-cloudformation - StreamEnabled 表属性导致 Serverless 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52122905/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com