1
0
Fork 0
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:
paul-the-alien[bot] 2021-06-28 19:30:16 +00:00 committed by GitHub
commit 64e327e7b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 17 deletions

View file

@ -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"

View 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

View file

@ -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: