{"id":15901535,"url":"https://github.com/01walid/cdktf-gke-auth","last_synced_at":"2025-06-10T15:08:12.850Z","repository":{"id":172264207,"uuid":"649057511","full_name":"01walid/cdktf-gke-auth","owner":"01walid","description":"A pure CDK for Terraform construct to authenticate against Google Kubernetes Engine (GKE) without the need of any Terraform module","archived":false,"fork":false,"pushed_at":"2023-06-04T13:26:26.000Z","size":175,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T04:05:19.912Z","etag":null,"topics":["cdk-constructs","cdk-for-terraform","cdktf","gke","jsii","k8s","kubernetes"],"latest_commit_sha":null,"homepage":"https://constructs.dev/packages/cdktf-gke-auth/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/01walid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-03T16:29:59.000Z","updated_at":"2024-03-03T05:53:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5351b5e1-dc79-4a0d-a0b6-9b40ba6d6ed8","html_url":"https://github.com/01walid/cdktf-gke-auth","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"e8f36fc726858a677237269135e62718c7201aa8"},"previous_names":["01walid/cdktf-gke-auth"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fcdktf-gke-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fcdktf-gke-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fcdktf-gke-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/01walid%2Fcdktf-gke-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/01walid","download_url":"https://codeload.github.com/01walid/cdktf-gke-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244525569,"owners_count":20466543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdk-constructs","cdk-for-terraform","cdktf","gke","jsii","k8s","kubernetes"],"created_at":"2024-10-06T11:04:54.908Z","updated_at":"2025-03-20T19:30:43.542Z","avatar_url":"https://github.com/01walid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://opensource.org/licenses/Apache-2.0\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg\" alt=\"Apache 2.0 License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://gitpod.io/#https://github.com/01walid/cdktf-gke-auth\"\u003e\u003cimg src=\"https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod\" alt=\"Gitpod ready-to-code\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/cdktf-gke-auth\"\u003e\u003cimg src=\"https://badge.fury.io/js/cdktf-gke-auth.svg\" alt=\"npm version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pypi.org/project/cdktf-gke-auth/\"\u003e\u003cimg src=\"https://badge.fury.io/py/cdktf-gke-auth.svg\" alt=\"PyPI version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/01walid/cdktf-gke-auth/actions/workflows/build.yml\"\u003e\u003cimg src=\"https://github.com/01walid/cdktf-gke-auth/actions/workflows/build.yml/badge.svg\" alt=\"Build badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/01walid/cdktf-gke-auth/actions/workflows/release.yml\"\u003e\u003cimg src=\"https://github.com/01walid/cdktf-gke-auth/actions/workflows/release.yml/badge.svg\" alt=\"Release badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# cdktf-gke-auth\n\nEasily authenticate against a Google Kubernetes Engine (GKE) within your CDK for Terraform stack. Without the need to\nresort to [Google's terraform GKE auth](https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/tree/v26.1.1/modules/auth) module. You can avoid running `cdktf get` as pre-synth step. \n\nThis project uses [projen](https://github.com/projen/projen) and [jsii](https://github.com/aws/jsii) to compile the construct to Typescript, Python, Go and .Net (Java upon request).\n\n## Example usage (Typescript)\n\nInstall the construct with: `yarn install cdktf-gke-auth`.\n\n```ts\nimport { GoogleProvider } from \"@cdktf/provider-google/lib/provider\";\nimport { TerraformOutput, TerraformStack } from \"cdktf\";\nimport { Construct } from \"constructs\";\nimport { GKEAuth } from 'cdktf-gke-auth';\n\nexport class MyKubeStack extends TerraformStack {\n  constructor(scope: Construct, name: string) {\n    super(scope, name);\n\n    new GoogleProvider(this, \"google-provider\", {});\n\n    const auth = new GKEAuth(this, \"gke-auth\", {\n      clusterName: \"my-cluster\",\n      location: \"europe-west1\",\n      projectId: \"my-project\",\n    });\n\n    // init the Kubernetes provider like so:\n    new KubernetesProvider(this, \"kubernetes\", {\n      ...auth.authCredentials\n    });\n\n    // Or a helm provider like so:\n     new HelmProvider(this, \"helm\", {\n      kubernetes: auth.authCredentials,\n    });\n  }\n}\n```\n\nThe `GKEAuth` instance expose `host`, `clusterCaCertificate`, `clusterCaCertificatePEM`, and `token` you can use to authenticate using\nany of the kubernetes popular cdktf providers.\n\nFor other languages examples, checkout this construct on [ConstructHub](https://constructs.dev/packages/cdktf-gke-auth/). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F01walid%2Fcdktf-gke-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F01walid%2Fcdktf-gke-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F01walid%2Fcdktf-gke-auth/lists"}