3.2 KiB
Contribute to Terraform AzureRM provider
This document describe how you can get ready to contribute to the AzureRM Terraform provider.
Setup your system
Terraform
You need to install Terraform on your dev environment. You can downlaod it from this page.
Go tools
Terraform is developed using Go. You need to install Go 1.11.x to be able to build and debug the provider locally. You can download it from this page and find the installation instructions for your system here
Then you can test your environment following the instructions on this page.
Check you GOPATH
As of many Go project, AzureRM Terraform provider rely on your GOPATH environment variable. You may want to make sure it is well configured for your system, reading this page.
Visual Studio Code
You can use the IDE you love, but in this documentation we will describe how to contribute to the Terraform AzureRM provider using Visual Studio Code. You can download it for your system from this page.
Once installed, download the Go extension for VS Code:
Once installed, open VS Code and look for the Go: Install/Update Tools
in the command palette, a select all the tools:
Specific requirements for Windows users
If you are running Windows, then you need to install Git Bash and Make for Windows. Check the dedicated section on Terraform on Azure repository here.
Get the sources
First, go to the AzureRM Terraform provider project page and fork the repository into your GitHub account.
Once done, you need to clone your fork into the $GOPATH/src/github.com/terraform-providers/terraform-provider-azurerm
folder.
You can check that everything is OK by building the AzureRM provider:
cd $GOPATH/src/github.com/terraform-providers/terraform-provider-azurerm
make build
Once completed, the binary of the AzureRM provider should be available in the $GOPATH/bin
directory.
Note: on Windows, you need to use Git Bash
Work with your local build
Once you have built a new version of the AzureRM Terraform provider, you can use it locally.
TODO
Debug the AzureRM provider using Visual Studio Code and Delve
It is possible to use Visual Studio Code and Delve (the Golang debugger) to debug the AzureRM provider.
TODO
Other
Slack
You can request an invite to access the Terraform on Azure Slack here.