Configure a Route53 DNS credential that uses workload identity with IAM roles for service accounts (IRSA) instead of a stored secret.
With workload identity, Cloudera Cloud Factory stores no secret. The external-dns Pod runs in the ccf-external-dns namespace and assumes the IAM role through the cluster OIDC provider. The cluster needs an IAM OIDC provider.
In your profile, go to Settings > Features preview, and turn on Workload Identity.
Add a trust policy that federates the cluster OIDC provider to the external-dns service account. Replace <ACCOUNT_ID> with your AWS account ID, and <OIDC_PROVIDER> with the host of the cluster issuer, for example oidc.eks.<region>.amazonaws.com/id/<id> on EKS.
To confirm the name of the service account on the cluster, run kubectl -n ccf-external-dns get sa.
The service account is in the ccf-external-dns namespace. Cloudera Cloud Factory always runs a single external-dns instance named primary, so the service account is external-dns-primary. Confirm this name before you write the sub condition.
In the Add DNS Credentials form, select AWS Route53 as the provider, and set Authentication to Workload identity.
Set Identity Provider to IRSA, and enter the role ARN in IAM Role ARN.
The format is arn:aws:iam::<ACCOUNT_ID>:role/<role-name>. GovCloud and China partitions, and roles with a path prefix, are accepted. Cloudera Cloud Factory sets this ARN as the eks.amazonaws.com/role-arn annotation on the service account.
The following screenshot shows the Add DNS Credentials drawer for AWS Route53 with workload identity. The values shown are examples.
Figure 1. Workload identity with the IRSA identity provider