Skip to content

Commit

Permalink
[AWS SSM Parameter SecretStore] Adds Component Metadata Schema (#2938)
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto J Rojas <[email protected]>
Signed-off-by: Roberto Rojas <[email protected]>
  • Loading branch information
robertojrojas authored Aug 2, 2023
1 parent 25656c1 commit c2dbb03
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions secretstores/aws/parameterstore/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# yaml-language-server: $schema=../../../component-metadata-schema.json
schemaVersion: v1
type: secretstores
name: aws.parameterstore
version: v1
status: alpha
title: "AWS SSM Parameter Store"
urls:
- title: Reference
url: https://docs.dapr.io/reference/components-reference/supported-secret-stores/aws-parameter-store/
builtinAuthenticationProfiles:
- name: "aws"
metadata:
- name: region
required: true
description: |
The specific AWS region the AWS SSM Parameter Store instance is deployed in.
example: '"us-east-1"'
type: string
- name: sessionToken
required: false
sensitive: true
description: |
AWS session token to use. A session token is only required if you are using
temporary security credentials.
example: '"TOKEN"'
type: string
- name: prefix
required: false
description: |
The SSM Parameter Store prefix to be specified. If specified, it will be
used as the 'BeginsWith' as part of the 'ParameterStringFilter'.
example: '"myprefix"'
type: string
4 changes: 2 additions & 2 deletions secretstores/aws/parameterstore/parameterstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func NewParameterStore(logger logger.Logger) secretstores.SecretStore {

type ParameterStoreMetaData struct {
Region string `json:"region"`
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey"`
AccessKey string `json:"accessKey" mapstructure:"accessKey" mdignore:"true"`
SecretKey string `json:"secretKey" mapstructure:"secretKey" mdignore:"true"`
SessionToken string `json:"sessionToken"`
Prefix string `json:"prefix"`
}
Expand Down

0 comments on commit c2dbb03

Please sign in to comment.