boto3-无法使用DynamoDB全局表版本2019.11.21

发布于 2025-02-04 18:26:09 字数 400 浏览 2 评论 0 原文

我正在使用当前版本的boto3。 我想知道是否可以在DynamoDB中创建2019.11.21版本的全局表? 根据boto3文档 - - 此操作仅适用于2017.11.11.11.29表。

有人在boto3中克服了这一点吗?

I am using the current version of boto3.
I was wondering is it possible to create global tables in DynamoDB that are of version 2019.11.21?
According to the boto3 documentation - https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html#DynamoDB.Client.create_global_table - This operation only applies to Version 2017.11.29 of global tables.

Has anyone overcome this in boto3?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

握住我的手 2025-02-11 18:26:09

您可以使用CDK

https://docs.aws.amazon.com/cdk/api/v1/docs/aws-dynamodb-readme.html#amazon-dynamodb-global-tables

const globalTable = new dynamodb.Table(this, 'Table', {
  partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING },
  replicationRegions: ['us-east-1', 'us-east-2', 'us-west-2'],
  billingMode: dynamodb.BillingMode.PROVISIONED,
});

You can do it with CDK

https://docs.aws.amazon.com/cdk/api/v1/docs/aws-dynamodb-readme.html#amazon-dynamodb-global-tables

const globalTable = new dynamodb.Table(this, 'Table', {
  partitionKey: { name: 'id', type: dynamodb.AttributeType.STRING },
  replicationRegions: ['us-east-1', 'us-east-2', 'us-west-2'],
  billingMode: dynamodb.BillingMode.PROVISIONED,
});
穿越时光隧道 2025-02-11 18:26:09

在boto3发行板上发布类似的问题之后,我使用create_global_tables方法 - 我使用了create_table和update_table方法 - https://github.com/boto/boto3/discussions/3293#discussioncomment-2901429

Instead of using the create_global_tables methods - I used the create_table and update_table method after posting a similar question on the boto3 issue board - https://github.com/boto/boto3/discussions/3293#discussioncomment-2901429

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文