generator-ecr.yaml 935 B

1234567891011121314151617181920212223242526272829303132
  1. apiVersion: generators.external-secrets.io/v1alpha1
  2. kind: ECRAuthorizationToken
  3. spec:
  4. # specify aws region (mandatory)
  5. region: eu-west-1
  6. # assume role with the given authentication credentials
  7. role: "my-role"
  8. # choose an authentication strategy
  9. # if no auth strategy is defined it falls back to using
  10. # credentials from the environment of the controller.
  11. auth:
  12. # 1: static credentials
  13. # point to a secret that contains static credentials
  14. # like AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY
  15. secretRef:
  16. accessKeyIDSecretRef:
  17. name: "my-aws-creds"
  18. key: "key-id"
  19. secretAccessKeySecretRef:
  20. name: "my-aws-creds"
  21. key: "access-secret"
  22. # option 2: IAM Roles for Service Accounts
  23. # point to a service account that should be used
  24. # that is configured for IAM Roles for Service Accounts (IRSA)
  25. jwt:
  26. serviceAccountRef:
  27. name: "oci-token-sync"