/terraform-provider-grid

Primary LanguageGoMozilla Public License 2.0MPL-2.0

Grid provider for terraform

A terraform provider for the threefold grid to manage your infrastructure using terraform.

Requirements

terraform {
  required_providers {
    grid = {
      source = "threefoldtech/grid"
    }
  }
}

Generating the docs

make docs

Using the provider

cd examples/resources/singlenode
export MNEMONICS="<mnemonics words>"
export NETWORK="<network>" # dev or test
terraform init && terraform apply -parallelism=1 # creates resources defined in main.tf
terraform destroy -parallelism=1 # destroy the created resource
  • For a tutorials, please visit the wiki page.
  • Detailed docs for resources and their arguments can be found in the docs.

Building The Provider (for development only)

make

Run tests

To run the tests, export MNEMONICS and NETWORK export MNEMONICS="" export NETWORK="" # dev or test run the following command

running unit tests

make unittests

running integration tests

make integrationtests

Known Issues