Skip to content

Commit c2dbb03

Browse files
[AWS SSM Parameter SecretStore] Adds Component Metadata Schema (#2938)
Signed-off-by: Roberto J Rojas <[email protected]> Signed-off-by: Roberto Rojas <[email protected]>
1 parent 25656c1 commit c2dbb03

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# yaml-language-server: $schema=../../../component-metadata-schema.json
2+
schemaVersion: v1
3+
type: secretstores
4+
name: aws.parameterstore
5+
version: v1
6+
status: alpha
7+
title: "AWS SSM Parameter Store"
8+
urls:
9+
- title: Reference
10+
url: https://docs.dapr.io/reference/components-reference/supported-secret-stores/aws-parameter-store/
11+
builtinAuthenticationProfiles:
12+
- name: "aws"
13+
metadata:
14+
- name: region
15+
required: true
16+
description: |
17+
The specific AWS region the AWS SSM Parameter Store instance is deployed in.
18+
example: '"us-east-1"'
19+
type: string
20+
- name: sessionToken
21+
required: false
22+
sensitive: true
23+
description: |
24+
AWS session token to use. A session token is only required if you are using
25+
temporary security credentials.
26+
example: '"TOKEN"'
27+
type: string
28+
- name: prefix
29+
required: false
30+
description: |
31+
The SSM Parameter Store prefix to be specified. If specified, it will be
32+
used as the 'BeginsWith' as part of the 'ParameterStringFilter'.
33+
example: '"myprefix"'
34+
type: string

secretstores/aws/parameterstore/parameterstore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ func NewParameterStore(logger logger.Logger) secretstores.SecretStore {
4242

4343
type ParameterStoreMetaData struct {
4444
Region string `json:"region"`
45-
AccessKey string `json:"accessKey"`
46-
SecretKey string `json:"secretKey"`
45+
AccessKey string `json:"accessKey" mapstructure:"accessKey" mdignore:"true"`
46+
SecretKey string `json:"secretKey" mapstructure:"secretKey" mdignore:"true"`
4747
SessionToken string `json:"sessionToken"`
4848
Prefix string `json:"prefix"`
4949
}

0 commit comments

Comments
 (0)