{"id":13505838,"url":"https://github.com/contentful-labs/terraform-diff","last_synced_at":"2025-09-01T03:33:58.946Z","repository":{"id":39801844,"uuid":"236779168","full_name":"contentful-labs/terraform-diff","owner":"contentful-labs","description":"Always know where you need to run Terraform plan \u0026 apply!","archived":false,"fork":false,"pushed_at":"2023-06-16T08:40:58.000Z","size":1163,"stargazers_count":67,"open_issues_count":1,"forks_count":4,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-05-08T08:02:07.278Z","etag":null,"topics":["autoplan","autoplanning","diff","terraform"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contentful-labs.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}},"created_at":"2020-01-28T16:17:58.000Z","updated_at":"2025-04-16T16:44:34.000Z","dependencies_parsed_at":"2024-01-03T02:29:06.978Z","dependency_job_id":"c2ee109c-6542-4b11-aec5-5ae93e77718e","html_url":"https://github.com/contentful-labs/terraform-diff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/contentful-labs/terraform-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contentful-labs","download_url":"https://codeload.github.com/contentful-labs/terraform-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contentful-labs%2Fterraform-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273069664,"owners_count":25040093,"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-09-01T02:00:09.058Z","response_time":120,"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":["autoplan","autoplanning","diff","terraform"],"created_at":"2024-08-01T00:01:15.092Z","updated_at":"2025-09-01T03:33:58.857Z","avatar_url":"https://github.com/contentful-labs.png","language":"Go","funding_links":[],"categories":["Tools","Go","terraform"],"sub_categories":["Community providers"],"readme":"# Terraform-diff\n\nTerraform-diff helps you detect what Terraform projects have changed when changes are made to Terraform modules.\n\n## Example\n\nGiven the following Terraform setup: \n\n``` \n.\n├── modules\n│   └── module1\n│   │   └── main.tf\n│   └── module2\n│   │   └── main.tf\n│   └── module3\n│       └── main.tf\n└── project1\n│   └─── main.tf\n└── project2\n    └─── main.tf\n```\n\nAnd the following dependencies:\n * project1 depends on module1\n * module1 depends on module2\n * project2 depends on module3\n\nThe logic would be: \n * if there is a change in modules/module1/, modules/module2/, or project1/, you would want to run `make plan` in project1/.\n * if there is a change in modules/module3/, or project2/, you would want to run `make plan` in project2/\n\nThis is where Terraform-diff is useful:\n\n```\n$ terraform-diff -h\nUsage of terraform-diff:\n  -output string\n      output format (text or json) (default \"text\")\n  -range string\n      git commit range\n$ terraform-diff project1 project2\nproject1\n$ terraform-diff --range fbf666c786...ca37f7145f -o json project1 project2\n{\n  \"project1\",\n  \"project2\"\n}\n```\n\n## Trade-offs\n\n``terraform-diff`` relies on git \u0026 static analysis of the Terraform files. It will **not** detect, among others:\n * changes in external datasources\n * remote states updates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful-labs%2Fterraform-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontentful-labs%2Fterraform-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontentful-labs%2Fterraform-diff/lists"}