Coder Social home page Coder Social logo

terraform-provider-armada's Introduction

Terraform Provider Armada

Build Status

This is a custom plugin implementation of a Terraform Provider Armada, made using go.

Requirements

  • Terraform 0.10+
  • Go 1.12 (to build the provider plugin)

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (please check the requirements before proceeding).

To build the plugin through the pipeline, you can use azurepipeline.yml and download the Artifact (plugin) directly after the build succeeds.

Or if you wish to build it locally, clone the repo, install the dependencies and build.

Clone repository to: somepath/terraform-providers/

mkdir -p somepath/terraform-providers/; cd somepath/terraform-providers/
git clone https://github.com/rajkumarbestha/terraform-provider-armada.git

To compile the provider, enter the provider directory in the repo and run the below command. This will build the provider and put the provider binary in the current directory.

go build -o terraform-provider-armada.exe

Using the Provider

To use a released provider in your Terraform environment, run terraform init and Terraform will automatically install the provider. To specify a particular provider version when installing released providers, see the Terraform documentation on provider versioning.

To instead use a custom-built provider (as above) in your Terraform environment (e.g. the provider binary from the build instructions above), follow the instructions to install it as a plugin. Or else for a quick workthrough, place the plugin(.exe) from the repo in the same directory as the terraform binary or place it in your current directory from where you are running the terraform scripts, and run terraform init to initialize it.

After initializing the custom plugin, you might want to write terraform scripts, these simple points will make you familiar with this plugin.

  1. Provider Block:
provider "armada"{
   // AK and SK.
}
  1. Resource Block:
resource "armada_ec2" "dev_ec2__test"{
   // required fields.
}

To know about the resources and the fields this plugin supports, please have a look at this sample terraform scripts. These scripts will make you familiar with the plugin easily.

Happy Terraforming! :)

Contributing

Terraform is the work of thousands of contributors. We appreciate your help!

To contribute, please reach out to Rasheed/Rajkumar.

terraform-provider-armada's People

Contributors

rajkumarbestha avatar

Watchers

 avatar  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.