{"id":14063944,"url":"https://github.com/rdbartram/PSTerraformParser","last_synced_at":"2025-07-29T17:31:00.188Z","repository":{"id":131230895,"uuid":"179702519","full_name":"rdbartram/PSTerraformParser","owner":"rdbartram","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-10T09:54:35.000Z","size":27,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-04T02:35:19.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/rdbartram.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}},"created_at":"2019-04-05T14:57:01.000Z","updated_at":"2023-03-30T22:12:20.000Z","dependencies_parsed_at":"2023-04-03T15:06:13.578Z","dependency_job_id":null,"html_url":"https://github.com/rdbartram/PSTerraformParser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/rdbartram/PSTerraformParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbartram%2FPSTerraformParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbartram%2FPSTerraformParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbartram%2FPSTerraformParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbartram%2FPSTerraformParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdbartram","download_url":"https://codeload.github.com/rdbartram/PSTerraformParser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdbartram%2FPSTerraformParser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267726742,"owners_count":24134901,"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-07-29T02:00:12.549Z","response_time":2574,"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":"2024-08-13T07:03:35.357Z","updated_at":"2025-07-29T17:30:59.866Z","avatar_url":"https://github.com/rdbartram.png","language":"PowerShell","readme":"# PSTerraformParser\r\n\r\n\u003e I hope someday this functionality ends up native in Terraform, but for now, we have PowerShell.\r\n\r\nPSTerraformParser is a module designed to take the string output from your terraform plans and return them in a standardised json format.\r\n\r\n🐱‍💻 PSTerraformParser is built and tested in Azure DevOps and is distributed via the PowerShell gallery.\r\n\r\n[![pester](https://img.shields.io/azure-devops/tests/rdbartram/GitHubPipelines/8.svg?label=pester\u0026logo=azuredevops\u0026style=for-the-badge)](https://dev.azure.com/rdbartram/GithubPipelines/_build/latest?definitionId=8?branchName=master)\r\n[![latest version](https://img.shields.io/powershellgallery/v/PSTerraformParser.svg?label=latest+version\u0026style=for-the-badge)](https://www.powershellgallery.com/packages/PSTerraformParser)\r\n[![downloads](https://img.shields.io/powershellgallery/dt/PSTerraformParser.svg?label=downloads\u0026style=for-the-badge)](https://www.powershellgallery.com/packages/PSTerraformParser)\r\n\r\n\r\n\r\n## Installation\r\n\r\nPSTerraformParser is compatible with Windows PowerShell 5.x and PowerShell Core 6.x.\r\n\r\n```powershell\r\nInstall-Module -Name PSTerraformParser -Scope CurrentUser -Force\r\n```\r\n\r\n## Features\r\n\r\n### Terraform Plan Parsing\r\n\r\nSince the output from Terraform plan is just plan text and not easily readable for automation, I've done the hard work and provided it in\r\njson format for you. Just use the following command\r\n\r\n```powershell\r\nterraform plan -no-color \u003e\u003e .\\MyPlan.txt\r\n\r\nRead-TerraformPlan -Path .\\MyPlan.txt\r\n```\r\n\r\n\u003e IMPORTANT: I can't parse the file produced by the -out=path argument for terraform plan which is a binary file. There is not a stable specification for this binary file format so, at this time, it is safer to parse the somewhat structured textual output that gets written to stdout.\r\n\r\n\r\n## Further reading\r\n\r\nFor more information pertaining to Terraform, head to their website [terraform](https://terraform.io).\r\n\r\n## Got questions?\r\n\r\nGot questions or you just want to get in touch? Use our issues page or one of these channels:\r\n\r\n[![Pester Twitter](https://img.icons8.com/color/96/000000/twitter.png)](https://twitter.com/rd_bartram)\r\n","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbartram%2FPSTerraformParser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdbartram%2FPSTerraformParser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdbartram%2FPSTerraformParser/lists"}