{"id":26060029,"url":"https://github.com/rasta-rocket/terraform-inventory","last_synced_at":"2026-05-12T07:32:12.478Z","repository":{"id":64304188,"uuid":"108745953","full_name":"rasta-rocket/terraform-inventory","owner":"rasta-rocket","description":"Generate Ansible inventory based on Terraform deployment","archived":false,"fork":false,"pushed_at":"2019-05-30T18:06:14.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T15:01:27.420Z","etag":null,"topics":["ansible","go","openstack","terraform"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rasta-rocket.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-29T15:24:20.000Z","updated_at":"2019-05-30T18:06:15.000Z","dependencies_parsed_at":"2023-01-15T10:15:43.327Z","dependency_job_id":null,"html_url":"https://github.com/rasta-rocket/terraform-inventory","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasta-rocket%2Fterraform-inventory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasta-rocket%2Fterraform-inventory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasta-rocket%2Fterraform-inventory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rasta-rocket%2Fterraform-inventory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rasta-rocket","download_url":"https://codeload.github.com/rasta-rocket/terraform-inventory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242559202,"owners_count":20149326,"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":["ansible","go","openstack","terraform"],"created_at":"2025-03-08T13:49:15.063Z","updated_at":"2026-05-12T07:32:12.435Z","avatar_url":"https://github.com/rasta-rocket.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Inventory\nTerraform Inventory is a tool that generate an Ansible inventory based on a Terraform deployment.\n\n### Installation from binary\nYou can download the released [binaries](https://github.com/rasta-rocket/terraform-inventory/releases) and put it in your system PATH.\n\n```\n$ wget https://github.com/rasta-rocket/terraform-inventory/releases/download/\u003cLATEST_VERSION\u003e/terraform-inventory_linux_x64.tar.gz\n$ tar -xzf terraform-inventory_linux_x64.tar.gz\n$ sudo cp terraform-inventory /opt\n$ export PATH=$PATH:/opt\n$ terraform-inventory --help\n```\n\n### Installation from source\n[Go 1.11.x](https://golang.org/) is required to build this tool.\nThen fetch terraform-inventory from github sources.\n\n```\n$ git clone https://github.com/rasta-rocket/terraform-inventory\n$ go build\n```\n\n### Usage\nBasic usage:\n```\n$ terraform apply\n$ terraform-inventory -u \u003cssh_user\u003e -k \u003cssh_key\u003e\n? Choose a bastion :\n❯ e1b52c07-8a75-4527-b43f-850aaec4c3ef     bastion_0                      172.16.1.23\nInventory file is configured with 172.16.1.23 as bastion (ssh-proxy)\n$ cat hosts\n$ ansible -m ping all\n```\nYou can also force the bastion IP you want to use:\n```\n$ terraform apply\n$ terraform-inventory -u \u003cssh_user\u003e -k \u003cssh_key\u003e --bastion 172.16.1.25\nInventory file is configured with 172.16.1.25 as bastion (ssh-proxy)\n$ cat hosts\n$ ansible -m ping all\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasta-rocket%2Fterraform-inventory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frasta-rocket%2Fterraform-inventory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frasta-rocket%2Fterraform-inventory/lists"}