Hacker News new | ask | show | jobs
by chrisanthropic 3092 days ago
Automating more Terraform stuff.

First, a script that calculates what percentage of your AWS resources (15 different resources for now) are managed by the Terraform code in a given directory, and then creates GitHub style badges for each. https://github.com/chrisanthropic/terraform-infra-as-code-co...

Second, a script to fully automate importing an existing GitHub org into Terraform and create a basic Terraform resource block for each resource. Imports teams, users, user memberships, and all repos. https://github.com/chrisanthropic/terraform-import-github-or...

Both scripts are just bash and the AWS API, GitHub API, and Terraform. jq is also required.