{"id":13505808,"url":"https://github.com/sl1pm4t/k2tf","last_synced_at":"2025-05-15T12:04:06.623Z","repository":{"id":38899553,"uuid":"172287819","full_name":"sl1pm4t/k2tf","owner":"sl1pm4t","description":"Kubernetes YAML to Terraform HCL converter","archived":false,"fork":false,"pushed_at":"2024-08-07T04:28:59.000Z","size":756,"stargazers_count":1215,"open_issues_count":24,"forks_count":111,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-05-14T16:53:56.177Z","etag":null,"topics":["command-line-tool","converter","hashicorp","hashicorp-terraform","hcl","kubernetes","terraform","tool","utility","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sl1pm4t.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":"2019-02-24T02:38:32.000Z","updated_at":"2025-05-12T16:58:26.000Z","dependencies_parsed_at":"2024-01-03T02:29:19.890Z","dependency_job_id":"d4e8a7d0-9c16-47a7-9833-53955bc8b2a8","html_url":"https://github.com/sl1pm4t/k2tf","commit_stats":{"total_commits":183,"total_committers":17,"mean_commits":"10.764705882352942","dds":"0.41530054644808745","last_synced_commit":"1b376c0c58d6700a61bccb02fae23bbbccb3211d"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sl1pm4t%2Fk2tf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sl1pm4t%2Fk2tf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sl1pm4t%2Fk2tf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sl1pm4t%2Fk2tf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sl1pm4t","download_url":"https://codeload.github.com/sl1pm4t/k2tf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337612,"owners_count":22054253,"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":["command-line-tool","converter","hashicorp","hashicorp-terraform","hcl","kubernetes","terraform","tool","utility","yaml"],"created_at":"2024-08-01T00:01:14.328Z","updated_at":"2025-05-15T12:04:01.606Z","avatar_url":"https://github.com/sl1pm4t.png","language":"Go","funding_links":[],"categories":["Go","Tools","Infrastructure as code","Infrastructure as Code","yaml","terraform","kubernetes"],"sub_categories":["Miscellaneous","Infrastructure as code generation","Terraform Tooling","Community providers"],"readme":"# k2tf - Kubernetes YAML to Terraform HCL converter\n\n[![Build Status](https://cloud.drone.io/api/badges/sl1pm4t/k2tf/status.svg)](https://cloud.drone.io/sl1pm4t/k2tf)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sl1pm4t/k2tf?)](https://goreportcard.com/report/github.com/sl1pm4t/k2tf)\n[![Release](https://img.shields.io/github/release-pre/sl1pm4t/k2tf.svg)](https://github.com/sl1pm4t/k2tf/releases)\n\nA tool for converting Kubernetes API Objects (in YAML format) into HashiCorp's Terraform configuration language.\n\nThe converted `.tf` files are suitable for use with the [Terraform Kubernetes Provider](https://www.terraform.io/docs/providers/kubernetes/index.html)\n\n[![asciicast](https://asciinema.org/a/5LzAc7Eha7w7dwrktAxcMdpIc.svg)](https://asciinema.org/a/5LzAc7Eha7w7dwrktAxcMdpIc)\n\n## Installation\n\n**Pre-built Binaries**\n\nDownload Binary from GitHub [releases](https://github.com/sl1pm4t/k2tf/releases/latest) page.\n\n**Build from source**\n\n_See below_\n\n**Homebrew**\n\n```\n$ brew install k2tf\n```\n**asdf**\n\nUse the [asdf-k2tf](https://github.com/carlduevel/asdf-k2tf) plugin.\n\n\n## Example Usage\n\n**Convert a single YAML file and write generated Terraform config to Stdout**\n\n```\n$ k2tf -f test-fixtures/service.yaml\n```\n\n**Convert a single YAML file and write output to file**\n\n```\n$ k2tf -f test-fixtures/service.yaml -o service.tf\n```\n\n**Convert a directory of Kubernetes YAML files**\n\n```\n$ k2tf -f test-fixtures/\n```\n\n**Read \u0026 convert Kubernetes objects directly from a cluster**\n\n```\n$ kubectl get deployments -o yaml | ./k2tf -o deployments.tf\n```\n\n## Building\n\n\u003e **NOTE** Requires a working Golang build environment.\n\nThis project uses Golang modules for dependency management, so it can be cloned outside of the `$GOPATH`.\n\n**Clone the repository**\n\n```\n$ git clone https://github.com/sl1pm4t/k2tf.git\n```\n\n**Build**\n\n```\n$ cd k2tf\n$ make build\n```\n\n**Run Tests**\n\n```\n$ make test\n```\n\n---\n\n[![Downloads](https://img.shields.io/github/downloads/sl1pm4t/k2tf/total.svg)](https://img.shields.io/github/downloads/sl1pm4t/k2tf/total.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsl1pm4t%2Fk2tf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsl1pm4t%2Fk2tf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsl1pm4t%2Fk2tf/lists"}