{"repo":"flosell/iam-policy-json-to-terraform","free":true,"listed":false,"github":"https://github.com/flosell/iam-policy-json-to-terraform","clone":"git clone https://github.com/flosell/iam-policy-json-to-terraform.git","description":"Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document","language":"JavaScript","stars":817,"topics":["aws","iam-policy","iam","terraform","hcl","infrastructure-as-code","hacktoberfest"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"iam-policy-json-to-terraform Small tool to convert an IAM Policy in JSON format into a Terraform aws iam policy document Web Version Check out a web version of the tool here. For command line usage and automation, check out the instructions below. Installation OSX asdf Other Download the latest binary from the releases page and put it into your PATH under the name iam-policy-json-to-terraform Developer If you're a go developer and have your GOPATH defined and have added your $GOPATH/bin directory to your path, you can simply run this command. Usage From raw JSON From a JSON policy file If a video demo is more your thing, checkout this nice 2min introduction by the folks at env0. Local development Prerequisites Clone the repository to a location of your choosing: Install dependencies and tools for the web build (golang tooling is automatically installed when used): Development Entry point ./go is your primary point of entry for any development activity. Call it without arguments to learn more: Web Development To develop the web-frontend, you'll need to first compile the JavaScript version of iam-policy-json-to-terraform . ./go web-build will do that, generating a web.js file. Include it and it'll expose a convert(policyName,jsonString) function in the global namespace. Currently, the complete web-frontend is plain HTML, JS and CSS, all within web/index.html . Edit or refine as needed. End-To-End Tests for the web frontend exist as TestCafe tests in web test.js and can be run u","default_branch":null,"files":null,"tree":[],"storefront":"/r/flosell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/flosell/iam-policy-json-to-terraform/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}