diff --git a/terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf b/terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf index 9bf982d..a6ecf89 100644 --- a/terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf +++ b/terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf @@ -8,7 +8,7 @@ locals { } kube_github_runner_github_token = lookup(jsondecode(data.aws_secretsmanager_secret_version.infra.secret_string), "github_pat_token", "") service_account_name = "gha-runner-scale-set-gha-rs-no-permission" - eks_oidc_provider_url = replace(local.eks_oidc_provider_arn, "arn:aws:iam::${data.aws_caller_identity.current.account_id}:oidc-provider/", "") + eks_oidc_provider_url = replace("${data.aws_eks_cluster.main.identity[0].oidc[0].issuer}" , "https://", "") gha_runner_scale_set_values = <