{"id":18552632,"url":"https://github.com/ionos-cloud/cdktf-go-k8s-example","last_synced_at":"2025-05-15T11:13:39.077Z","repository":{"id":77084649,"uuid":"532080273","full_name":"ionos-cloud/cdktf-go-k8s-example","owner":"ionos-cloud","description":"An example to deploy managed K8s with CDK for Terraform","archived":false,"fork":false,"pushed_at":"2022-09-09T18:52:35.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T10:49:08.562Z","etag":null,"topics":["cdk-examples","cdktf","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ionos-cloud.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":"2022-09-02T21:11:37.000Z","updated_at":"2023-05-16T11:33:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d460bbe-cde4-4f11-9139-7d1464a35539","html_url":"https://github.com/ionos-cloud/cdktf-go-k8s-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fcdktf-go-k8s-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fcdktf-go-k8s-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fcdktf-go-k8s-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionos-cloud%2Fcdktf-go-k8s-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionos-cloud","download_url":"https://codeload.github.com/ionos-cloud/cdktf-go-k8s-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254328389,"owners_count":22052633,"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-examples","cdktf","go","golang"],"created_at":"2024-11-06T21:14:44.857Z","updated_at":"2025-05-15T11:13:39.042Z","avatar_url":"https://github.com/ionos-cloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CDK for Terraform Go Example\n\n[![Test \u0026 Build](https://github.com/ionos-cloud/event-gateway/actions/workflows/main.yml/badge.svg)](https://github.com/ionos-cloud/event-gateway/actions/workflows/main.yml)\n[![Taylor Swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)\n[![Volkswagen](https://auchenberg.github.io/volkswagen/volkswargen_ci.svg?v=1)](https://github.com/auchenberg/volkswagen)\n\n[Cloud Development Kit for Terraform](https://www.terraform.io/cdktf) (CDKTF) allows you to use familiar programming languages to define and provision infrastructure. This is a simple example of how to use CDKTF to create a [Kubernetes](https://kubernetes.io/) cluster on the IONOS Cloud using the [Go](https://go.dev/) programming language.\n\n:warning: What is deployed is a [Managed Kubernetes Cluster](https://cloud.ionos.de/managed/kubernetes) on the IONOS Cloud :cloud:. Please be aware that this is not for free.\n\n## Prerequisites\n\n* [IONOS Account](https://cloud.ionos.com/)\n* [Terraform](https://www.terraform.io/)\n* [CDK for Terrform](https://learn.hashicorp.com/tutorials/terraform/cdktf-install?in=terraform/cdktf#install-cdktf)\n* [Object Storage Bucket](https://cloud.ionos.com/storage/object-storage)\n\nOptional:\n\n* [`ionosctl`](https://github.com/ionos-cloud/ionosctl)\n\n## Deploy\n\nYou either have to set the `IONOS_USERNAME` and `IONOS_PASSWORD` or `IONOS_TOKEN` environment variables.\n\n\u003e `ionosctl token create` and `ionosctl token get --token-id` gives you a token.\n\nFurtheremore, you have to set `ACCESS_KEY`, `SECRET_KEY` and `BUCKET_NAME` environment variables for the Terraform backend.\n\n\u003e This can be used in combination with a GitHub Action to deploy the cluster.\n\n\u003e The bucket should have versioning enabled.\n\n```bash\ncdktf deploy\n```\n\n## Tests\n\nWriting tests for CDKTF is easy with Go.\n\n```bash\ngo test ./...\n```\n\nIf you are finished experimenting you can do a simple `cdktf destroy` to clean up.\n\n## License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionos-cloud%2Fcdktf-go-k8s-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionos-cloud%2Fcdktf-go-k8s-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionos-cloud%2Fcdktf-go-k8s-example/lists"}