{"id":18811772,"url":"https://github.com/logicmonitor/automated-terraform-provider","last_synced_at":"2025-10-10T10:14:41.021Z","repository":{"id":41977287,"uuid":"479465931","full_name":"logicmonitor/automated-terraform-provider","owner":"logicmonitor","description":"This repo accompanies our blogpost titled \"How to Write a Custom Terraform Provider Automatically with OpenAPI\"","archived":false,"fork":false,"pushed_at":"2022-04-20T23:10:13.000Z","size":3911,"stargazers_count":15,"open_issues_count":2,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T21:07:51.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","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/logicmonitor.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}},"created_at":"2022-04-08T16:37:23.000Z","updated_at":"2024-12-03T03:29:17.000Z","dependencies_parsed_at":"2022-08-02T22:15:47.396Z","dependency_job_id":null,"html_url":"https://github.com/logicmonitor/automated-terraform-provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/logicmonitor/automated-terraform-provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fautomated-terraform-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fautomated-terraform-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fautomated-terraform-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fautomated-terraform-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicmonitor","download_url":"https://codeload.github.com/logicmonitor/automated-terraform-provider/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicmonitor%2Fautomated-terraform-provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003489,"owners_count":26083594,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07T23:27:38.115Z","updated_at":"2025-10-10T10:14:40.966Z","avatar_url":"https://github.com/logicmonitor.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automatically Writing a Terraform Provider for LogicMonitor\n\n\u003cimg src=\"LM_logo.png\" width=\"600\"\u003e\n\n\u003cimg src=\"https://www.datocms-assets.com/2885/1629941242-logo-terraform-main.svg\" width=\"600px\"\u003e\n\u003cbr\u003e\u003c/br\u003e\n\nThis is the companion code to our [**How to Write a Custom Terraform Provider Automatically With OpenAPI**](http://logicmonitor.com/blog/how-to-write-a-custom-terraform-provider-automatically-with-openapi) article.\n\nLearn more by checking out the article!\n\n## Requirements\n\n-\t[Terraform](https://www.terraform.io/downloads.html) 0.14.x\n-\t[Go](https://golang.org/doc/install) 1.16 (to build the provider plugin)\n-   [Go-Swagger](https://goswagger.io/install.html) v0.27.0+ (to generate the code)\n\n## Building the Provider\nClone repository (here, using SSH):\n```sh\n$ git clone git@github.com:logicmonitor/automated-terraform-provider.git\n```\nEnter the provider directory and build the provider:\n```sh\n$ cd automated-terraform-provider/\n$ make\n```\nThe Makefile will then generate the code, build the binary, and copy it to the Terraform plugin directory.\n\n## Using the provider\n\nThe LogicMonitor Terraform Provider has two methods for setting required arguments:\nEnvironment Variables\n```sh\nexport LM_API_ID=xyz\nexport LM_API_KEY=xyz\nexport LM_COMPANY=xyz\n```\n\nProvider Initialization\n```sh\nprovider \"logicmonitor\" {\n  api_id = var.logicmonitor_api_id\n  api_key = var.logicmonitor_api_key\n  company = var.logicmonitor_company\n}\n```\nTest cases can be found in the `/automated-terraform-provider/Test` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicmonitor%2Fautomated-terraform-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicmonitor%2Fautomated-terraform-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicmonitor%2Fautomated-terraform-provider/lists"}