No description
  • Go 91.8%
  • HTML 3.4%
  • Shell 2.7%
  • Makefile 2.1%
Find a file
Tony Carmichael c921915651
Update README.md
add archive note
2020-12-08 10:13:31 -07:00
.github Make CoC and support channels more visible 2017-11-01 23:05:28 +01:00
logicmonitor Merge pull request #20 from lazzurs/feature/plugin_sdk 2020-07-29 10:52:34 -07:00
scripts add script to modify changelog 2017-10-11 15:02:42 -05:00
vendor Migrating provider to the terraform plugin SDK. 2019-12-09 22:47:28 +00:00
website added dashboards and dashboard groups 2020-02-02 18:04:44 -05:00
.gitignore Add .gitignore file 2017-10-11 10:25:27 -05:00
.go-version provider: Ensured Go 1.11 in TravisCI and README 2019-02-20 17:50:47 -05:00
.travis.yml deps: use go modules for dep mgmt 2019-02-20 17:51:06 -05:00
CHANGELOG.md Cleanup after v1.3.0 release 2020-02-03 17:11:47 +00:00
GNUmakefile deps: use go modules for dep mgmt 2019-02-20 17:51:06 -05:00
go.mod Migrating provider to the terraform plugin SDK. 2019-12-09 22:47:28 +00:00
go.sum Migrating provider to the terraform plugin SDK. 2019-12-09 22:47:28 +00:00
main.go Migrating provider to the terraform plugin SDK. 2019-12-09 22:47:28 +00:00
README.md Update README.md 2020-12-08 10:13:31 -07:00

Please note: This Terraform provider is archived, per our provider archiving process. What does this mean?

  1. The code repository and all commit history will still be available.
  2. Existing released binaries will remain available on the releases site.
  3. Issues and pull requests are not being monitored.
  4. New releases will not be published.

If anyone from the community or an interested third party is willing to maintain it, they can fork the repository and publish it to the Terraform Registry. If you are interested in maintaining this provider, please reach out to the Terraform Provider Development Program at terraform-provider-dev@hashicorp.com.


Terraform Provider for LogicMonitor

Requirements

  • Terraform 0.10.x
  • Go 1.11 (to build the provider plugin)

Testing The Provider

Clone repository to: $GOPATH/src/github.com/terraform-providers/terraform-provider-logicmonitor

$ mkdir -p $GOPATH/src/github.com/terraform-providers; cd $GOPATH/src/github.com/terraform-providers
$ git clone git@github.com:logicmonitor/terraform-provider-logicmonitor

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-logicmonitor
$ make build

Using the provider

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}"
}

Developing the Provider

Contributing Resources

Development Environment

If you wish to work on the provider, you'll first need Go installed on your machine (version 1.11+ is required). You'll also need to correctly setup a GOPATH, as well as adding $GOPATH/bin to your $PATH.

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-logicmonitor
...

In order to test the provider, you can simply run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc