Skip to content
Open Source

Declare the what. 
scampi handles the how.

IaC convergence, garlic buttery smooth

scampi mascot
module main

import "std"
import "std/local"
import "std/posix"

let machine = local.target { name = "my-machine" }

std.deploy(name = "hello", targets = [machine]) {
  posix.dir { path = "/tmp/scampi-demo", perm = "0755" }
  posix.dir { path = "/tmp/scampi-demo/v1", perm = "0755" }

  posix.symlink {
    target = "/tmp/scampi-demo/v1"
    link   = "/tmp/scampi-demo/current"
  }
}