A terraform provider for OPS. Specify your nanos images and deploy to cloud providers like Google Cloud, Aws, Azure, Oracle Cloud Infrastructure, Open Stack, Vsphere, Upcloud and Digital Ocean.
provider "ops" {
}
resource "ops_images" "walk_server_image" {
name = "walk-server"
elf = "./walk-server"
config = "./config.json"
targetcloud = "gcp"
}
Run the following command to build the provider
go build -o terraform-provider-ops
First, build and install the provider.
make install
Then, run the following command to initialize the workspace and apply the sample configuration.
terraform init && terraform apply
If you want to destroy the resources created run terraform destroy
.
Check our examples.