Skip to content

idy/terraform-provider-gcore

 
 

Repository files navigation

Terraform Gcore Provider

Gcore

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

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-gcore.git
$ cd $GOPATH/src/github.com/terraform-providers/terraform-provider-gcore
$ 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.gcore.com/repo/gcore" = "/<dev-path>/terraform-provider-gcore/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.gcore.com/repo/gcore to .tf configuration file

terraform {
  required_version = ">= 0.13.0"

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

Using the provider

To use the provider, prepare configuration files based on examples

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

Thank You

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.6%
  • Other 0.4%