AWS DynamoDB 绑定规范

AWS DynamoDB 绑定组件的详细文档

配置

要设置 AWS DynamoDB 绑定,请创建一个类型为 bindings.aws.dynamodb 的组件。 See this guide on how to create and apply a binding configuration.

See Authenticating to AWS for information about authentication-related attributes

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: <NAME>
  5. namespace: <NAMESPACE>
  6. spec:
  7. type: bindings.aws.dynamodb
  8. version: v1
  9. metadata:
  10. - name: table
  11. value: items
  12. - name: region
  13. value: us-west-2
  14. - name: accessKey
  15. value: *****************
  16. - name: secretKey
  17. value: *****************
  18. - name: sessionToken
  19. value: *****************

Warning

以上示例将密钥明文存储, It is recommended to use a secret store for the secrets as described here.

元数据字段规范

字段必填绑定支持详情Example
tableY输出DynamoDB 表名称“items”
regionY输出AWS DynamoDB 实例所部署的特定AWS 区域“us-east-1”
accessKeyY输出要访问此资源的 AWS 访问密钥“key”
secretKeyY输出要访问此资源的 AWS 密钥访问 Key“secretAccessKey”
sessionTokenN输出要使用的 AWS 会话令牌“sessionToken”

绑定支持

字段名为 ttlInSeconds

  • create

相关链接