Code Monkey home page Code Monkey logo

terraform-provider-gcore's Introduction

Terraform Gcore Provider

Gcore

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

Requirements

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

Upgrade state

To switch state from the deprecated provider (builds <= 0.3.64) please run

terraform state replace-provider registry.terraform.io/g-core/gcorelabs registry.terraform.io/g-core/gcore

Building the provider

GOPATH=$(go env GOPATH)
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 and point provider to development path
  • comment out the override if you want to use published binary from the upstream
cat > ~/.terraformrc << EOF
provider_installation {

  dev_overrides {
      "local.gcore.com/repo/gcore" = "$(go env GOPATH)/src/github.com/terraform-providers/terraform-provider-gcore/bin"
      "registry.terraform.io/g-core/gcore" = "$(go env GOPATH)/src/github.com/terraform-providers/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 {}
}
EOF

Optionally specify local.gcore.com/repo/gcore in main.tf configuration file

terraform {
  required_providers {
    gcore = {
      source  = "G-Core/gcore"
      version = ">= 0.3.65"
      # source = "local.gcore.com/repo/gcore"
      # version = ">=0.3.64"
    }
  }
  required_version = ">= 0.13.0"
}

Using the provider

To use the provider, prepare configuration files based on examples

$ cp ./examples/... .
$ terraform init # not needed when override is in use

Updating docs

Don't forget to add docs and examples to support your contribution. Update tfplugindocs when needed.

$ tfplugindocs
$ git add .

Thank You

terraform-provider-gcore's People

Contributors

0ndi avatar gentyk avatar vvelikodny avatar valentingentyuk avatar shubinmi avatar lipovmi avatar shelomentsevd avatar freenoth avatar bazilek avatar alexk53 avatar dz0gchen avatar strelkov-a avatar andrei-lukyanchyk avatar daragok avatar kokizzu avatar artsiomantropau avatar gbernady avatar ivishnevs avatar intiluha avatar alex2304 avatar f21 avatar pashukhin avatar vayw avatar marianastrix avatar yasamal33 avatar yshnitsar avatar sergsolovyev avatar sevavayner 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.