我正在尝试使用 AWS CloudFormation 创建 AWS DynamoDB 表,
我对在表中指定 bool 数据类型的内容感到困惑,
在模板文件中。
我在表格中的数据显示为 bool 类型 -
但是在文档上它显示它只有 3 种类型需要指定 -
我正在关注此 CloudFormation 引用文档 -
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html
最佳答案
你打算用它作为索引吗?如果不是,您不需要这些列,即使您的模板也会失败,表明您有一个未在任何索引中使用的列。因为Dynamo是schemaless 。除非你可以使用 BOOL
type作为数据类型。
关于amazon-web-services - 适用于 DynamoDb bool 和列表数据类型的 AWS CloudFormation AttributeType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56831199/