AWS SSM Parameter Store

Detailed information on the AWS SSM Parameter Store - secret store component

配置

To setup AWS SSM Parameter Store secret store create a component of type secretstores.aws.parameterstore. See this guide on how to create and apply a secretstore configuration. See this guide on referencing secrets to retrieve and use the secret with Dapr components.

See Authenticating to AWS for information about authentication-related attributes.

  1. apiVersion: dapr.io/v1alpha1
  2. kind: Component
  3. metadata:
  4. name: awsparameterstore
  5. namespace: default
  6. spec:
  7. type: secretstores.aws.parameterstore
  8. version: v1
  9. metadata:
  10. - name: region
  11. value: "[aws_region]"
  12. - name: accessKey
  13. value: "[aws_access_key]"
  14. - name: secretKey
  15. value: "[aws_secret_key]"
  16. - name: sessionToken
  17. value: "[aws_session_token]"

Warning

以上示例将密钥明文存储, It is recommended to use a local secret store such as Kubernetes secret store or a local file to bootstrap secure key storage.

元数据字段规范

字段必填详情Example
regionYThe specific AWS region the AWS SSM Parameter Store instance is deployed in“us-east-1”
accessKeyY要访问此资源的 AWS 访问密钥“key”
secretKeyY要访问此资源的 AWS 密钥访问 Key“secretAccessKey”
sessionTokenN要使用的 AWS 会话令牌“sessionToken”

Create an AWS SSM Parameter Store instance

Setup AWS SSM Parameter Store using the AWS documentation: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html.

相关链接