samjegal / terraform-provider-fincloud

Terraform provider for Financial Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Provider for Financial Cloud

Build Go Report Card License: MPL 2.0

Requirements

  • Terraform 0.12.x +
  • Go 1.13.x (to build the provider plugin)

Installation

This provider is available on macOS and Windows platforms.

MacOS / Homebrew

$ brew tap samjegal/fincloud
$ brew install terraform-provider-fincloud

Windows

$ choco install terraform-provider-fincloud

Developing the Provider

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.

First Clone repository to: $GOPATH/src/github.com/samjegal/terraform-provider-fincloud

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

At this point you can compile the provider by running make and put the provider binary in the $GOPATH/bin directory.

$ make
...
$ $GOPATH/bin/terraform-provider-fincloud

Usage Example

resource "fincloud_virtual_private_cloud" "example" {
  name       = "dev"
  cidr_block = "172.31.0.0/16"
}

resource "fincloud_network_acl" "example" {
  vpc_id = fincloud_virtual_private_cloud.example.id

  name        = "dev"
  description = "Example Description"
}

resource "fincloud_network_acl_rule" "example" {
  network_acl_id = fincloud_network_acl.example.id

  rule {
    direction   = "inbound"
    protocol    = "tcp"
    cidr_block  = "0.0.0.0/0"
    port        = "4000"
    allow       = true
    priority    = 0
    description = "Inbound Port 4000"
  }
}

Contributing

This repository is inspired by Microsoft Azure Terraform. The code is based on terraform-provider-azurerm

About

Terraform provider for Financial Cloud

License:Mozilla Public License 2.0


Languages

Language:Go 99.2%Language:Makefile 0.5%Language:Shell 0.3%