Syntax for UI Rendering
Last updated
Last updated
In Kubiya's UI, you can render input fields for the variables of your use case Terraform module. You can render them in the UI simply by:
Going to https://app.kubiya.ai/use-cases/new
Click Load Use Case in the top-right corner
Add the URL of the repository
You will see all of the Terraform modules in that URL show up. Click on your use case, and then click Continue.
To take full advantage of Kubiya's use case rendering, you can use Kubiya's syntax, which checks for conditions like variable type, as well as prefixes and suffixes in the variable name. Here's the full syntax:
Drop down select (pre-filled with Kubiya resources)
Variable name start with: kubiya_runner, kubiya_users, kubiya_integrations, kubiya_groups, kubiya_secrets
Checkbox
Variable type is bool
Tags Input
Variable type is array
Text Area
Variable name includes: _prompt, prompt_, multiline_, _multiline
Date Picker
Variable name includes: start, time
Code editor
Variable name includes: _json, json_, _yaml, yaml_, _python, python_
Normal Input
Not Everything else, can be also Number input while the Variable type is number