Skip to content

Instantly share code, notes, and snippets.

@Yamini-crypto
Created February 9, 2024 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yamini-crypto/3ba794ade97965c6de82f246d35150ed to your computer and use it in GitHub Desktop.
Save Yamini-crypto/3ba794ade97965c6de82f246d35150ed to your computer and use it in GitHub Desktop.
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: aws-external-secret
namespace: secret-demo
spec:
refreshInterval: 5s
secretStoreRef:
name: aws-secrets-manager
kind: ClusterSecretStore
target:
name: secret-demo # This creates one secret in your k8s cluster
creationPolicy: Owner
## You can get all of the secret content (recommended)
dataFrom:
- extract:
key: external-secret-demo #aws secret name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment