amazon-web-services - 如何通过 IAM 控制用户对 Amazon DynamoDB 数据的访问?

标签 amazon-web-services amazon-dynamodb amazon-iam

是否AWS Identity and Access Management (IAM)提供一种方法,使用户只能编辑或删除 Amazon DynamoDB 中的项目。他之前加的表?

最佳答案

在 AWS 添加 Fine-Grained Access Control for Amazon DynamoDB 后,这成为可能,这有助于 AWS Identity and Access Management (IAM)管理对存储在 DynamoDB 表中的项目和属性的访问的策略。

介绍性博客文章说明了此功能的出色粒度以及对许多实际用例的简化:

  • 卧式 - 您可以通过匹配哈希键值来选择性地隐藏或公开特定表中的特定 DynamoDB 项目
  • 立式 - 您可以通过匹配属性名称来有选择地隐藏或公开特定表中所有 DynamoDB 项目的特定属性
  • 合并 - 您可以在同一策略中进行横向和纵向控制

  • Fine-Grained Access Control for Amazon DynamoDB有关此功能的更多详细信息,以确定谁可以访问 Amazon DynamoDB 表和索引中的单个数据项和属性,以及可以对它们执行的操作。
  • 这还包括一个具体的例子,如何在 Amazon DynamoDB 的主键中包含用户 ID。通过适当的 IAM Condition 水平和垂直地隐藏信息此后基于主叫用户。


  • 附录

    Werner Vogels 的 Simplifying Mobile App Data Management with DynamoDB's Fine-Grained Access Control 也强调了这一新功能的深远范围/影响。 :

    With Fine-Grained Access Control, we solve this problem by enabling you to author access policies that include conditions that describe additional levels of filtering and control. This eliminates the need for the proxy layer, simplifies the application stack, and results in cost savings.

    [...]

    With today’s launch, apps running on mobile devices can send workloads to a DynamoDB table, row, or even a column without going through an intervening proxy layer. [...] This capability allows apps running on mobile devices to modify only rows belonging to a specific user. Also, by consolidating users’ data in a DynamoDB table, you can obtain real-time insights over the user base, at large scale, without going through expensive joins and batch approaches such as scatter / gather.

    关于amazon-web-services - 如何通过 IAM 控制用户对 Amazon DynamoDB 数据的访问?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20876500/

    相关文章:

    php - 有没有办法在通过 AWS Kinesis Firehose 插入时手动设置 ElasticSearch 文档 ID?

    amazon-web-services - 如何使用 AWS Glue 将 csv 文件加载到 AWS Aurora 数据库(关系数据库)中?

    node.js - 对于数量大于 10 的更新组,TransactWriteItems API 失败。错误 : Member must have length less than or equal to 10

    javascript - AWS.IAM 不是构造函数 JavaScript SDK

    amazon-web-services - 在 Cloudformation 中使用参数值作为键

    amazon-web-services - 跨多个AWS账户构建nodejs应用程序

    amazon-web-services - 为什么我的 AWS cloudfront 可以工作,但不安全?

    amazon-web-services - 如何在boto中使用系统环境变量

    java - 动态模块 : how to filer all items which do not have a certain attribute?

    python-3.x - 如何访问现有的 Amazon DynamoDB 表?