Engine

The Snap CD Runner requires either OpenTofu (tofu) or Terraform (terraform) binaries. These are referred to as the Engine. You can use either or both on your Runner. Which Engine should be used is defined on the Module spec. You must provide your own binaries.

Note that Snap CD has only been tested with terraform binaries up to release 1.5.7, which was the final release under the Mozilla Public License 2.0. It was not developed for later versions, such as those published under the Business Source License 1.1 (BSL 1.1).

Examples

A default Engine can be configured for every Namespace, and/or can be set (overriden) on each Module individually.

Set Engine on Namespace

resource "snapcd_mynamespace" "mynamespace" {
  name            = "mynamespace"
  stack_id        = snapcd_stack.mystack.id
  ...
  default_engine  = "OpenTofu"
}

Set Engine on Module

resource "snapcd_module" "mymodule" {
  name          = "mymodule"
  namespace_id  = snapcd_namespace.mynamespace.id
  ...
  engine        = "OpenTofu"
}

The full Module spec can be found here.

The full Namespace spec can be found here.

Last updated on