{"id":20112870,"url":"https://github.com/cloudacademy/terraformer-examples","last_synced_at":"2025-07-05T05:36:16.538Z","repository":{"id":77791734,"uuid":"310644945","full_name":"cloudacademy/terraformer-examples","owner":"cloudacademy","description":"This repo accompanies the course on Cloud Academy covering Terraformer.","archived":false,"fork":false,"pushed_at":"2020-11-18T00:30:59.000Z","size":11,"stargazers_count":14,"open_issues_count":0,"forks_count":21,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T18:51:15.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudacademy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2020-11-06T16:11:14.000Z","updated_at":"2024-07-25T15:13:52.000Z","dependencies_parsed_at":"2023-04-30T04:33:48.352Z","dependency_job_id":null,"html_url":"https://github.com/cloudacademy/terraformer-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cloudacademy/terraformer-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fterraformer-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fterraformer-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fterraformer-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fterraformer-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudacademy","download_url":"https://codeload.github.com/cloudacademy/terraformer-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudacademy%2Fterraformer-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263691539,"owners_count":23496871,"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":[],"created_at":"2024-11-13T18:22:53.845Z","updated_at":"2025-07-05T05:36:16.480Z","avatar_url":"https://github.com/cloudacademy.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Cloud Academy's Course on Terraformer \n\n[To the Course!](https://cloudacademy.com/course/infrastructure-to-code-with-terraformer-1135/course-introduction/)\n\n## Installing Terraformer\n\n* Linux\n```\nexport PROVIDER={all,google,aws,kubernetes}\ncurl -LO https://github.com/GoogleCloudPlatform/terraformer/releases/download/$(curl -s https://api.github.com/repos/GoogleCloudPlatform/terraformer/releases/latest | grep tag_name | cut -d '\"' -f 4)/terraformer-${PROVIDER}-linux-amd64\nchmod +x terraformer-${PROVIDER}-linux-amd64\nsudo mv terraformer-${PROVIDER}-linux-amd64 /usr/local/bin/terraformer\n```\n* MacOS\n```\nexport PROVIDER={all,google,aws,kubernetes}\ncurl -LO https://github.com/GoogleCloudPlatform/terraformer/releases/download/$(curl -s https://api.github.com/repos/GoogleCloudPlatform/terraformer/releases/latest | grep tag_name | cut -d '\"' -f 4)/terraformer-${PROVIDER}-darwin-amd64\nchmod +x terraformer-${PROVIDER}-darwin-amd64\nsudo mv terraformer-${PROVIDER}-darwin-amd64 /usr/local/bin/terraformer\n```\n\n## Using a package manager\n\n- [Homebrew](https://brew.sh/) users can use `brew install terraformer`.\n- [Chocolatey](https://chocolatey.org/) users can use `choco install terraformer`.\n\n## Installing Other Binaries Used\n\n### Terraform\n\n* Terraform_0.12.29\n```\ncurl -LO https://releases.hashicorp.com/terraform/0.12.29/terraform_0.12.29_linux_amd64.zip\nunzip terraform_0.12.29_linux_amd64.zip\nchmod +x ./terraform\nsudo mv ./terraform /usr/local/bin\n```\n\n\n\n### Plugin\n\n* Provider \n\nReplace the init.tf provider with your declared Cloud Provider and run the following command\nin the directory with init.tf\n\n```\nterraform init\n```\n\n#\n\n# What happens after terraformer is ran?\n\nFiles are generated in the current directory with the following folder structure:\n\n```\ngenerated / {RPROVIDER} / {PROJECT} / {RESOURCE} / {REGION/GLOBAL}\n```\n\n## What's generated?\n\n**Always**\n- provider.tf\n- terraform.tfstate\n\n**When terraformer finds resources**\n- Name of corresponding resource in provider\n-- Unless Compact is used\n- Outputs for the found resource during invokation\n\n\n### Terraformer Examples Used in Course\n\n```\nterraformer import google --resources=instances --projects=cloudacademyprod --regions=us-central1\n```\n\n```\nterraformer import google --resources=addresses,autoscalers,backendBuckets,backendServices,bigQuery,cloudFunctions,cloudsql,dataProc,disks,externalVpnGateways,dns,firewall,forwardingRules,gcs,gke,globalAddresses,globalForwardingRules,healthChecks,httpHealthChecks,httpsHealthChecks,iam,images,instanceGroupManagers,instanceGroups,instanceTemplates,instances,interconnectedAttachments,kms,logging,memoryStore,monitoring,networks,packetMirrorings,nodeGroups,nodeTemplates,project,pubsub,regionAutoscalers,regionBackendServices,regionDisks,regionHealthChecks,regionInstanceGroups,regionSslCertificates,regionTargetHttpProxies,regionTargetHttpsProxies,regionUrlMaps,reservations,resourcePolicies,regionInstanceGroupManagers,routers,routes,schedulerJobs,securityPolicies,sslCertificates,sslPolicies,subnetworks,targetHttpProxies,targetHttpsProxies,targetInstances, targetPools,targetSslProxies,targetTcpProxies,targetVpnGateways,urlMaps,vpnTunnels --projects=cloudacademyprod --regions=us-central1\n```\n_The above code example will likely have you running into API issues in GCP. They are required to be enabled, so don't expect this to work on the first go!_\n```\nterraformer plan google --resources=instances --projects=cloudacademyprod --regions=us-central1\n```\n\n```\nterraformer import plan {PATH}/{TO}/plan.json\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacademy%2Fterraformer-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudacademy%2Fterraformer-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudacademy%2Fterraformer-examples/lists"}