diff --git a/terraform/modules/k8s-addons/eks-github-runner.tf b/terraform/modules/k8s-addons/eks-github-runner.tf new file mode 100644 index 0000000..d68e109 --- /dev/null +++ b/terraform/modules/k8s-addons/eks-github-runner.tf @@ -0,0 +1,175 @@ +locals { + github_runner = { + name = local.helm_releases[index(local.helm_releases.*.id, "github-runner")].id + enabled = local.helm_releases[index(local.helm_releases.*.id, "github-runner")].enabled + chart = local.helm_releases[index(local.helm_releases.*.id, "github-runner")].chart + repository = local.helm_releases[index(local.helm_releases.*.id, "github-runner")].repository + chart_version = local.helm_releases[index(local.helm_releases.*.id, "github-runner")].chart_version + namespace = local.helm_releases[index(local.helm_releases.*.id, "github-runner")].namespace + } + github_runner_registration_token = lookup(jsondecode(data.aws_secretsmanager_secret_version.infra.secret_string), "github_runner_registration_token", "") + github_runner_values = <