generator-sts.yaml 923 B

123456789101112131415161718192021222324252627282930313233
  1. apiVersion: generators.external-secrets.io/v1alpha1
  2. kind: STSSessionToken
  3. metadata:
  4. name: sts-gen
  5. spec:
  6. # specify aws region (mandatory)
  7. region: eu-west-1
  8. # assume role with the given authentication credentials
  9. role: "my-role"
  10. # choose an authentication strategy
  11. # if no auth strategy is defined it falls back to using
  12. # credentials from the environment of the controller.
  13. auth:
  14. # static credentials:
  15. # point to a secret that contains static credentials
  16. # like AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY
  17. secretRef:
  18. accessKeyIDSecretRef:
  19. name: "my-aws-creds"
  20. key: "key-id"
  21. secretAccessKeySecretRef:
  22. name: "my-aws-creds"
  23. key: "access-secret"
  24. # optional request parameters for further fine-tuning the Token generation.
  25. requestParameters:
  26. serialNumber: arn:aws:iam::123456789012:mfa/user
  27. sessionDuration: 900
  28. tokenCode: "123456"