Skip to content

Terraform Provider

The Frostmoln Terraform provider lets you manage your cloud resources declaratively — version-controlled, reviewable, and reproducible.

Install

Declare the provider in your Terraform configuration:

hcl
terraform {
  required_providers {
    frostmoln = {
      source = "frostmoln/frostmoln"
    }
  }
}

provider "frostmoln" {
  # Configuration via provider arguments or environment variables —
  # see Getting Started.
}

Run terraform init to download it.

Example resource

hcl
resource "frostmoln_compute_instance" "web" {
  name           = "web-1"
  region         = "sweden"
  image          = "ubuntu-24.04"
  flavor         = "c1.small"
  vpc            = frostmoln_network_vpc.main.id
  security_group = frostmoln_network_security_group.web.id
  ssh_key        = "my-laptop"
}

Next steps