GithubHelp home page GithubHelp logo

ocobles / automated-terraform-provider-equinix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from logicmonitor/automated-terraform-provider

0.0 0.0 0.0 3.82 MB

Custom Terraform Provider Automatically with OpenAPI

Python 4.98% Groovy 49.19% Go 42.53% Makefile 1.55% HCL 1.75%

automated-terraform-provider-equinix's Introduction

Automatically Writing a Terraform Provider for LogicMonitor



This is the companion code to our How to Write a Custom Terraform Provider Automatically With OpenAPI article.

Learn more by checking out the article!

Requirements

Building the Provider

Clone repository (here, using SSH):

$ git clone [email protected]:logicmonitor/automated-terraform-provider.git

Enter the provider directory and build the provider:

$ cd automated-terraform-provider/
$ make

The Makefile 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
}

Test cases can be found in the /automated-terraform-provider/Test directory.

automated-terraform-provider-equinix's People

Contributors

adam-johnson-lm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.