vaad2 / terraform-provider-gcorelabs-local

G-Сore Labs Cloud Terraform Provider dev

Home Page:https://gcorelabs.com/cloud/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform G-Core Labs Provider

G-Core Labs

====================================================================================

Requirements

  • Terraform 0.13.x
  • Go 1.14 (to build the provider plugin)

Building the provider

$ mkdir -p $GOPATH/src/github.com/terraform-providers
$ cd $GOPATH/src/github.com/terraform-providers
$ git clone https://github.com/G-Core/terraform-provider-gcorelabs.git
$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-gcorelabs
$ make build

Override Terraform provider

To override terraform provider for development goals you do next steps:

create Terraform configuration file

$ touch ~/.terraformrc

point provider to development path

provider_installation { 
 
  dev_overrides { 
      "local.gcorelabs.com/repo/gcore" = "/<dev-path>/terraform-provider-gcorelabs/bin" 
  } 
 
  # For all other providers, install them directly from their origin provider 
  # registries as normal. If you omit this, Terraform will _only_ use 
  # the dev_overrides block, and so no other providers will be available. 
  direct {} 
}

add local.gcorelabs.com/repo/gcore to .tf configuration file

terraform {
  required_version = ">= 0.13.0"

  required_providers {
    gcore = {
      source = "local.gcorelabs.com/repo/gcore"
    }
  }
}

Using the provider

To use the provider, prepare configuration files based on examples

$ cp ./examples/... .
$ terraform init

Thank You

About

G-Сore Labs Cloud Terraform Provider dev

https://gcorelabs.com/cloud/

License:Mozilla Public License 2.0


Languages

Language:Go 99.5%Language:Makefile 0.3%Language:Shell 0.1%