Giter VIP home page Giter VIP logo

simple-terraform-provider's Introduction

Sample Terraform Provider

This repo should provide a simple custom Terraform provider with the bare minimum to exemplify the declarative approach Terraform allows us to use when managing systems

The python app

This a simple stateful app that holds a list of integers. Its api only allows individual changes on the integers held by the app. Also the order of the numbers will be defined by the sequence used to add them.

So, if the user wants a specific list of numbers on the app, APIs need to be called in a determined way for the desired outcome be achieved.

The available API calls are present on the Postman collection inside /python-app directory

The Terraform provider

All the relevant code is in the /terraform-provider-python-app directory. Here is a small description of each subdirectory:

  • api/ has the http client to interact with the service
  • provider/ contains the code to define the terraform provider and its resource. Here is where the terraform resource numbers is defined
  • terraform/ has a the terraform code to test the provider

The build.sh builds the provider and moves it to a specific local path so that terraform can find it. Use it before trying to play with the terraform code.

You can check a more extensive tutorial from Hashicorp here. And there are also good tutorials out there, like this one

simple-terraform-provider's People

Contributors

danielkneipp avatar

Watchers

 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.