Flow

The sym_flow resource is what you use to provision a Flow with the Sym Terraform Provider.

resource "sym_flow" "this" {
  name = "sso_access"
  label = "SSO Access"

  template = "sym:template:approval:latest"
  implementation = "${path.module}/impl.py"

  environment_id = data.sym_environment.this.id

  params = {
    strategy_id = sym_strategy.this.id

    prompt_fields_json = jsonencode([{
      name = "reason"
      type = "string"
      required = true
    }])
  }
}

Attributes

Name

Description

Required

name

A slug uniquely identifying your Flow within your organization.

✔️

label

A human-readable name for your Flow

✔️

template

A fully-qualified Template name.

✔️

implementation

A relative path to the Python file with your Handlers implemented.

✔️

environment_id

The ID of a Sym Environment.

params

A set of parameters, as defined by the Template, which configure the Flow. See the documentation for your specific Template for more details.


Did this page help you?