Terraform Provider for LogicMonitor
- Website: https://www.terraform.io
- Mailing list: Google Groups
Requirements
Building the Provider (Internal)
Clone repository:
$ git clone [email protected]:logicmonitor/terraform-provider-logicmonitor.git
Enter the provider directory and build the provider:
$ cd terraform-provider-logicmonitor/
$ make
The make file will then generate the code, build the binary, and copy it to the Terraform plugin directory.
Using the provider
The LogicMonitor Terraform Provider has two methods for setting required arguments: Environment Variables
export LM_API_ID=xyz
export LM_API_KEY=xyz
export LM_COMPANY=xyz
Provider Initialization
provider "logicmonitor" {
api_id = var.logicmonitor_api_id
api_key = var.logicmonitor_api_key
company = var.logicmonitor_company
}