{"id":14957820,"url":"https://github.com/rohit-gohri/tf-patch","last_synced_at":"2026-03-07T03:31:36.239Z","repository":{"id":254861081,"uuid":"846756773","full_name":"rohit-gohri/tf-patch","owner":"rohit-gohri","description":"Patch package for terraform modules","archived":false,"fork":false,"pushed_at":"2025-11-16T05:09:31.000Z","size":543,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T11:57:06.485Z","etag":null,"topics":["cli","patch-package","terraform","terraform-module","tf-patch"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rohit-gohri.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":"2024-08-23T22:21:25.000Z","updated_at":"2024-08-26T20:28:38.000Z","dependencies_parsed_at":"2024-08-26T16:59:08.796Z","dependency_job_id":"7f52d168-3480-4c0e-ba50-73075917d3fc","html_url":"https://github.com/rohit-gohri/tf-patch","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"385f78b73370eaa43de0726ab96abe87ec31ee35"},"previous_names":["rohit-gohri/tf-patch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rohit-gohri/tf-patch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Ftf-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Ftf-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Ftf-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Ftf-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohit-gohri","download_url":"https://codeload.github.com/rohit-gohri/tf-patch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohit-gohri%2Ftf-patch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","patch-package","terraform","terraform-module","tf-patch"],"created_at":"2024-09-24T13:15:40.013Z","updated_at":"2026-03-07T03:31:36.214Z","avatar_url":"https://github.com/rohit-gohri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tf-patch\n=================\n\nPatch terraform modules to fix tiny things. Inspired by [patch-package](https://www.npmjs.com/package/patch-package) and [yarn patch](https://yarnpkg.com/cli/patch) but for terraform modules.\n\nSimply patch any terraform module using git patches:\n\n1. `npx tf-patch patch \u003cmodule\u003e` - Copy terraform module so patch can be generated from changes\n1. `npx tf-patch commit \u003cmodified-module-folder\u003e` - Generate .patch file that can be committed to .patches folder\n1. `npx tf-patch init` - Apply patches to downloaded terraform modules\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/tf-patch.svg)](https://npmjs.org/package/tf-patch)\n[![Downloads/week](https://img.shields.io/npm/dw/tf-patch.svg)](https://npmjs.org/package/tf-patch)\n\n\u003c!-- toc --\u003e\n* [Usage](#usage)\n* [Commands](#commands)\n\u003c!-- tocstop --\u003e\n# Usage\n\u003c!-- usage --\u003e\n```sh-session\n$ npm install -g tf-patch\n$ tf-patch COMMAND\nrunning command...\n$ tf-patch (--version)\ntf-patch/0.1.2 darwin-arm64 node-v20.15.0\n$ tf-patch --help [COMMAND]\nUSAGE\n  $ tf-patch COMMAND\n...\n```\n\u003c!-- usagestop --\u003e\n# Commands\n\u003c!-- commands --\u003e\n* [`tf-patch autocomplete [SHELL]`](#tf-patch-autocomplete-shell)\n* [`tf-patch commit FOLDER`](#tf-patch-commit-folder)\n* [`tf-patch help [COMMAND]`](#tf-patch-help-command)\n* [`tf-patch init`](#tf-patch-init)\n* [`tf-patch patch MODULE`](#tf-patch-patch-module)\n* [`tf-patch version`](#tf-patch-version)\n\n## `tf-patch autocomplete [SHELL]`\n\nDisplay autocomplete installation instructions.\n\n```\nUSAGE\n  $ tf-patch autocomplete [SHELL] [-r]\n\nARGUMENTS\n  SHELL  (zsh|bash|powershell) Shell type\n\nFLAGS\n  -r, --refresh-cache  Refresh cache (ignores displaying instructions)\n\nDESCRIPTION\n  Display autocomplete installation instructions.\n\nEXAMPLES\n  $ tf-patch autocomplete\n\n  $ tf-patch autocomplete bash\n\n  $ tf-patch autocomplete zsh\n\n  $ tf-patch autocomplete powershell\n\n  $ tf-patch autocomplete --refresh-cache\n```\n\n_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.0/src/commands/autocomplete/index.ts)_\n\n## `tf-patch commit FOLDER`\n\nThis command will generate a git diff of tmp module with changes and the original terraform module and save it to be committed in the repo\n\n```\nUSAGE\n  $ tf-patch commit FOLDER\n\nARGUMENTS\n  FOLDER  Folder with changed files\n\nDESCRIPTION\n  This command will generate a git diff of tmp module with changes and the original terraform module and save it to be\n  committed in the repo\n\nEXAMPLES\n  $ tf-patch commit /var/folders/tmp-10011-DygKbYjnYckl/module\n```\n\n_See code: [src/commands/commit/index.ts](https://github.com/rohit-gohri/tf-patch/blob/v0.1.2/src/commands/commit/index.ts)_\n\n## `tf-patch help [COMMAND]`\n\nDisplay help for tf-patch.\n\n```\nUSAGE\n  $ tf-patch help [COMMAND...] [-n]\n\nARGUMENTS\n  COMMAND...  Command to show help for.\n\nFLAGS\n  -n, --nested-commands  Include all nested commands in the output.\n\nDESCRIPTION\n  Display help for tf-patch.\n```\n\n_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.8/src/commands/help.ts)_\n\n## `tf-patch init`\n\nThis command will apply any patches found in the .patches directory to the corresponding terraform modules\n\n```\nUSAGE\n  $ tf-patch init\n\nDESCRIPTION\n  This command will apply any patches found in the .patches directory to the corresponding terraform modules\n\nEXAMPLES\n  $ tf-patch init\n```\n\n_See code: [src/commands/init/index.ts](https://github.com/rohit-gohri/tf-patch/blob/v0.1.2/src/commands/init/index.ts)_\n\n## `tf-patch patch MODULE`\n\nThis command will cause a package to be extracted in a temporary directory\n\n```\nUSAGE\n  $ tf-patch patch MODULE\n\nARGUMENTS\n  MODULE  Module to patch\n\nDESCRIPTION\n  This command will cause a package to be extracted in a temporary directory\n  intended to be editable at will.\n\nEXAMPLES\n  $ tf-patch patch gke-cluster\n```\n\n_See code: [src/commands/patch/index.ts](https://github.com/rohit-gohri/tf-patch/blob/v0.1.2/src/commands/patch/index.ts)_\n\n## `tf-patch version`\n\n```\nUSAGE\n  $ tf-patch version [--json] [--verbose]\n\nFLAGS\n  --verbose  Show additional information about the CLI.\n\nGLOBAL FLAGS\n  --json  Format output as json.\n\nFLAG DESCRIPTIONS\n  --verbose  Show additional information about the CLI.\n\n    Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.\n```\n\n_See code: [@oclif/plugin-version](https://github.com/oclif/plugin-version/blob/v2.2.11/src/commands/version.ts)_\n\u003c!-- commandsstop --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit-gohri%2Ftf-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohit-gohri%2Ftf-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohit-gohri%2Ftf-patch/lists"}