Deevnet Terraform Provider #
deevnet/deevnet v0.7.0
The deevnet/deevnet provider is how a tenant builds itself on a
Deevnet site: its network, its workloads, its
published names, and the Wi-Fi keys, registry entries, addresses and broker accounts its devices
need. It talks to the
Deevnet API with a
single token, and a tenant holds no other credential.
Install
Put the provider where terraform init finds it.
Provider
The provider block and its three arguments.
Resources
Every argument and attribute, generated from the schemas.
Restore Instead of Recreate
What the provider does when the API no longer holds an object.
Release Notes
What changed in each version, and what to do when upgrading.
A whole tenant #
terraform {
required_providers {
deevnet = {
source = "deevnet/deevnet"
version = "~> 0.6"
}
}
}
provider "deevnet" {}
resource "deevnet_tenant" "this" {
name = "tdemo"
}
resource "deevnet_workload" "web" {
tenant = deevnet_tenant.this.name
name = "web"
ssh_keys = [file("~/.ssh/id_ed25519.pub")]
}
resource "deevnet_iot_wifi_key" "devices" {
tenant = deevnet_tenant.this.name
name = "devices"
trust_class = "iot"
}
The tenant guide in the Deevnet docs walks through a first apply: Getting Started.