mirror of
https://github.com/external-secrets/external-secrets.git
synced 2024-12-14 11:57:59 +00:00
Merge pull request #225 from external-secrets/docs/aws_example_quick
chore(docs): AWSSM quick example changes
This commit is contained in:
commit
64e327e7b8
3 changed files with 26 additions and 17 deletions
|
@ -52,23 +52,9 @@ Consider the following JSON object that is stored in the SecretsManager key `my-
|
|||
```
|
||||
|
||||
This is an example on how you would look up nested keys in the above json object:
|
||||
``` yaml
|
||||
apiVersion: external-secrets.io/v1alpha1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: example
|
||||
spec:
|
||||
# [omitted for brevity]
|
||||
data:
|
||||
- secretKey: firstname
|
||||
remoteRef:
|
||||
key: my-json-secret
|
||||
property: name.first # Tom
|
||||
- secretKey: first_friend
|
||||
remoteRef:
|
||||
key: my-json-secret
|
||||
property: friends.1.first # Roger
|
||||
|
||||
``` yaml
|
||||
{% include 'aws-sm-external-secret.yaml' %}
|
||||
```
|
||||
|
||||
--8<-- "snippets/provider-aws-access.md"
|
||||
|
|
21
docs/snippets/aws-sm-external-secret.yaml
Normal file
21
docs/snippets/aws-sm-external-secret.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
apiVersion: external-secrets.io/v1alpha1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: example
|
||||
spec:
|
||||
refreshInterval: 1m
|
||||
secretStoreRef:
|
||||
name: secretstore-sample
|
||||
kind: SecretStore
|
||||
target:
|
||||
name: secret-to-be-created
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: firstname
|
||||
remoteRef:
|
||||
key: my-json-secret
|
||||
property: name.first # Tom
|
||||
- secretKey: first_friend
|
||||
remoteRef:
|
||||
key: my-json-secret
|
||||
property: friends.1.first # Roger
|
|
@ -8,7 +8,9 @@ spec:
|
|||
aws:
|
||||
service: SecretsManager
|
||||
# define a specific role to limit access
|
||||
# to certain secrets
|
||||
# to certain secrets.
|
||||
# role is a optional field that
|
||||
# can be omitted for test purposes
|
||||
role: iam-role
|
||||
region: eu-central-1
|
||||
auth:
|
||||
|
|
Loading…
Reference in a new issue