{"id":31760425,"url":"https://github.com/managedkaos/tf-module-instance","last_synced_at":"2025-10-09T21:29:24.157Z","repository":{"id":285300238,"uuid":"957651552","full_name":"managedkaos/tf-module-instance","owner":"managedkaos","description":"A tool for creating an instance of a Terraform module from the variables.tf file.","archived":false,"fork":false,"pushed_at":"2025-03-31T22:25:58.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T08:45:55.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/managedkaos.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":"2025-03-30T21:43:27.000Z","updated_at":"2025-04-08T13:42:53.000Z","dependencies_parsed_at":"2025-03-30T23:29:00.138Z","dependency_job_id":null,"html_url":"https://github.com/managedkaos/tf-module-instance","commit_stats":null,"previous_names":["managedkaos/tf-module-instance"],"tags_count":0,"template":false,"template_full_name":"managedkaos/python-container-template","purl":"pkg:github/managedkaos/tf-module-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedkaos%2Ftf-module-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedkaos%2Ftf-module-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedkaos%2Ftf-module-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedkaos%2Ftf-module-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/managedkaos","download_url":"https://codeload.github.com/managedkaos/tf-module-instance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/managedkaos%2Ftf-module-instance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002047,"owners_count":26083285,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-09T21:29:22.616Z","updated_at":"2025-10-09T21:29:24.149Z","avatar_url":"https://github.com/managedkaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TF Module Instance Generator\n\nA tool for creating an instance of a Terraform module from the variables.tf file.\n\n## Usage\n\n```bash\ndocker run -v $(pwd):/data tf-module-instance:main /data/variables.tf MODULE_INSTANCE_NAME PATH_TO_MODULE_SOURCE\n```\n\n- `MODULE_INSTANCE_NAME`  : The name of the module instance to be used in the output\n- `PATH_TO_MODULE_SOURCE` : The path to the module source to be used in the output\n\n## Example\n\n**Input**: `variables.tf`\n\n```js\nvariable \"vpc_id\" {\n  type = string\n}\n\nvariable \"public_subnet_tag\" {\n  type    = string\n  default = \"Name\"\n}\n\nvariable \"private_subnet_tag\" {\n  type    = string\n  default = \"Name\"\n}\n\nvariable \"public_subnet_regex\" {\n  type    = string\n  default = \"Public\"\n}\n\nvariable \"private_subnet_regex\" {\n  type    = string\n  default = \"Private\"\n}\n\nvariable \"tags\" {\n  type        = map(any)\n  default     = {}\n  description = \"A map of tags to assign\"\n}\n\nvariable \"subnets_desired_count\" {\n  type    = number\n  default = 2\n}\n```\n\n\n**Command**:\n\n```bash\ndocker run -v $(pwd):/data ghcr.io/managedkaos/tf-module-instance:fe46190 /data/variables.tf vpc \"./modules/vpc\" | tee main.tf\n```\n\n**Output**: `main.tf`\n\n```js\nmodule \"vpc\" {\n  source = \"./modules/vpc\"\n  vpc_id = \"\" # Needs to be defined\n  public_subnet_tag = \"Name\"\n  private_subnet_tag = \"Name\"\n  public_subnet_regex = \"Public\"\n  private_subnet_regex = \"Private\"\n  tags = {}\n  subnets_desired_count = 2\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanagedkaos%2Ftf-module-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanagedkaos%2Ftf-module-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanagedkaos%2Ftf-module-instance/lists"}