A terraform provider for the threefold grid to manage your infrastructure using terraform.
to use the mainnet
's version of the provider for v1.7.0
, use the following configs:
terraform {
required_providers {
grid = {
source = "threefoldtech/grid"
}
}
}
to use the testnet
's version of the provider for v1.7.0
, use the following configs:
terraform{
required_providers{
grid = {
source = "threeflodtech/grid"
version = "1.7.0-rcX"
}
}
}
for devnet, qanet use <VERSION>-dev
and <VERSION>-qa
respectivly
make docs
cd examples/resources/singlenode
export MNEMONICS="mnemonics words"
export NETWORK="network" # dev, qa, test, main
terraform init && terraform apply # creates resources defined in main.tf
terraform destroy # destroy the created resource
make
export MNEMONICS="mnemonics words"
export NETWORK="network" # dev, qa, test, main
make unittests
make integration
cd integrationtests
go test . -run <TestNameFunction> -v --tags=integration
go test . -run <TestNameFunction/SubFunctionName> -v --tags=integration #for testing only one sub-function
SSH_KEY
default location is file("~/.ssh/id_rsa.pub")
the path should be changed to match your public key location