aws-pm-push-secret-with-metadata.yaml 818 B

123456789101112131415161718192021
  1. apiVersion: external-secrets.io/v1alpha1
  2. kind: PushSecret
  3. metadata:
  4. name: pushsecret-example # Customisable
  5. namespace: default # Same of the SecretStores
  6. spec:
  7. deletionPolicy: Delete # the provider' secret will be deleted if the PushSecret is deleted
  8. refreshInterval: 10s # Refresh interval for which push secret will reconcile
  9. secretStoreRefs: # A list of secret stores to push secrets to
  10. - name: aws-parameterstore
  11. kind: SecretStore
  12. selector:
  13. secret:
  14. name: pokedex-credentials # Source Kubernetes secret to be pushed
  15. data:
  16. - match:
  17. remoteRef:
  18. remoteKey: my-first-parameter # Remote reference (where the secret is going to be pushed)
  19. metadata:
  20. parameterStoreType: "SecureString"
  21. parameterStoreKeyID: "bb123123-b2b0-4f60-ac3a-44a13f0e6b6c"