Installation
Both Terraformer and a Terraform provider plugin need to be installed.
Terraformer
Section titled “Terraformer”From releases
This installs all providers, set PROVIDER to one of google, aws or kubernetes if you only need one.
- Linux
export PROVIDER=allcurl -LO "https://github.com/chenrui333/terraformer/releases/download/$(curl -s https://api.github.com/repos/chenrui333/terraformer/releases/latest | grep tag_name | cut -d '"' -f 4)/terraformer-${PROVIDER}-linux-amd64"chmod +x terraformer-${PROVIDER}-linux-amd64sudo mv terraformer-${PROVIDER}-linux-amd64 /usr/local/bin/terraformer- MacOS
export PROVIDER=allcurl -LO "https://github.com/chenrui333/terraformer/releases/download/$(curl -s https://api.github.com/repos/chenrui333/terraformer/releases/latest | grep tag_name | cut -d '"' -f 4)/terraformer-${PROVIDER}-darwin-amd64"chmod +x terraformer-${PROVIDER}-darwin-amd64sudo mv terraformer-${PROVIDER}-darwin-amd64 /usr/local/bin/terraformerFrom source
- Run
git clone <terraformer repo> && cd terraformer/ - Run
go mod download - Run
go build -vfor all providers OR build with one providergo run build/main.go {google,aws,azure,kubernetes,etc}
Terraform Providers
Section titled “Terraform Providers”Create a working folder and initialize the Terraform provider plugin. This folder will be where you run Terraformer commands.
Run terraform init against a versions.tf file to install the plugins required for your platform. For example, if you need plugins for the google provider, versions.tf should contain:
terraform { required_providers { google = { source = "hashicorp/google" } } required_version = ">= 1.9, < 1.15"}Or, copy your Terraform provider’s plugin(s) from the list below to folder ~/.terraform.d/plugins/, as appropriate.
Links to download Terraform provider plugins:
- Major Cloud
- Cloud
- Infrastructure Software
- Network
- Myrasec provider >1.44 - here
- Cloudflare provider >=5.19.1 - Cloudflare provider releases
- Fastly provider >0.16.1 - here
- NS1 provider >1.8.3 - here
- PAN-OS provider >= 1.8.3 - here
- VCS
- GitHub provider >=2.2.1 - here
- Monitoring & System Management
- Community
Information on provider plugins: https://www.terraform.io/docs/configuration/providers.html