The documentation you are viewing is for Dapr v1.8 which is an older version of Dapr. For up-to-date documentation, see the latest version.
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
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: <NAME>
namespace: <NAMESPACE>
spec:
type: bindings.aws.dynamodb
version: v1
metadata:
- name: table
value: items
- name: region
value: us-west-2
- name: accessKey
value: *****************
- name: secretKey
value: *****************
- name: sessionToken
value: *****************
Warning
以上示例将密钥明文存储, It is recommended to use a secret store for the secrets as described here.元数据字段规范
| 字段 | 必填 | 绑定支持 | 详情 | Example |
|---|---|---|---|---|
| table | Y | 输出 | DynamoDB 表名称 | "items" |
| region | Y | 输出 | AWS DynamoDB 实例所部署的特定AWS 区域 | "us-east-1" |
| accessKey | Y | 输出 | 要访问此资源的 AWS 访问密钥 | "key" |
| secretKey | Y | 输出 | 要访问此资源的 AWS 密钥访问 Key | "secretAccessKey" |
| sessionToken | N | 输出 | 要使用的 AWS 会话令牌 | "sessionToken" |
绑定支持
字段名为 ttlInSeconds。
create
相关链接
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.