如何创建带有版本的 DynamoDb table?
How to create DynamoDb table with a version?
There are two versions of DynamoDB global tables available: Version 2019.11.21 (Current) and Version 2017.11.29.
我可以找出已创建的 table 的版本,但如果我想在创建 table 时使用特定版本,我该怎么做?
我有 cloudformation 创建两个 table,一个没有全局 table,另一个有全局 table。
没有全局 table 总是使用 19 版本创建,而使用全局 table 则使用 17 版本创建。
if I want to use specific version while creating the table, how can I do that?
你不能这样做。这不是您可以在 table 创建时明确控制的东西。如果您有旧版本,则只能在 AWS 控制台 中更新到新版本 。来自 docs:
Updating to version 2019.11.21 (current) is only available through the DynamoDB console.
要创建 2017 版本,您必须使用 create-global-table API 调用,在 CloudFormation 中 不支持 。
此外,CloudFormation 中的全球 table 支持仍在 开发路线图上 :
因此,如果您想在 CloudFormation 中创建和管理全局 table,唯一的选择是开发 custom resource。
There are two versions of DynamoDB global tables available: Version 2019.11.21 (Current) and Version 2017.11.29.
我可以找出已创建的 table 的版本,但如果我想在创建 table 时使用特定版本,我该怎么做?
我有 cloudformation 创建两个 table,一个没有全局 table,另一个有全局 table。
没有全局 table 总是使用 19 版本创建,而使用全局 table 则使用 17 版本创建。
if I want to use specific version while creating the table, how can I do that?
你不能这样做。这不是您可以在 table 创建时明确控制的东西。如果您有旧版本,则只能在 AWS 控制台 中更新到新版本 。来自 docs:
Updating to version 2019.11.21 (current) is only available through the DynamoDB console.
要创建 2017 版本,您必须使用 create-global-table API 调用,在 CloudFormation 中 不支持 。
此外,CloudFormation 中的全球 table 支持仍在 开发路线图上 :
因此,如果您想在 CloudFormation 中创建和管理全局 table,唯一的选择是开发 custom resource。