A Terraform provider for the Internet Computer.
resource "ic_canister" "hello_world" {
wasm_file = "${path.root}/hello-world.wasm"
arg = { greeter = "Hi" }
controllers = [ "fgte5-ciaaa-aaaad-aaatq-cai" ]
}For provider usage, visit the official docs.
Caution
terraform-provider-ic is under active development and highly experimental.
The rest of this document describes how to BUILD the provider.
- Clone the repository
- Enter the repository directory
- Build the provider using the Go
installcommand:
go installIf you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).
To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.
To generate or update documentation, run go generate.
To run the tests, start a local replica with dfx start and then run make.
Create a tag:
git tag v0.0.3Push the tag to trigger release creation:
git push origin v0.0.3