generator-ecr.yaml 962 B

12345678910111213141516171819202122232425262728293031323334
  1. apiVersion: generators.external-secrets.io/v1alpha1
  2. kind: ECRAuthorizationToken
  3. metadata:
  4. name: ecr-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. # 1: 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. # option 2: IAM Roles for Service Accounts
  25. # point to a service account that should be used
  26. # that is configured for IAM Roles for Service Accounts (IRSA)
  27. jwt:
  28. serviceAccountRef:
  29. name: "oci-token-sync"