Getting Started
Creating a Custom Variable:
- Under Cloud Management, select Custom Variables
- If getting started, select Create Custom Variable button
- If adding additional variables, select “Add” in the top right of the screen
- New custom variables can also be created from the custom variables tab of OU, Project, and Account details pages, but note that they are still created globally and available for use platform-wide..
- Variable Type Selection
- Standard - if the variable is a single key-value pair
- Example - key1: value1
- List - if variable is a single key with multiple associated values
- Example - key1: value1, key1: value2
- Map - if variable has multiple keys and value pairs
- Example - key1: value1, key2: value2
- Standard - if the variable is a single key-value pair
- Choose Builder or Text Editor depending on UI preference (List or Map type only). The text editor allows you to paste in many values or key-value pairs at once.
- Enter the name for the variable
- Name cannot contain any spaces or colons
- Provide the key:value pairs
- Key-value pairs need to be separated by a “:”
- Only one unquoted colon is allowed per line
- Description for the variable is optional
- Key Validation (Map Type only) - check the box if Custom Variables and any future overrides must adhere to regex validation
- If checked yes, enter the key validation condition. Click the re2 Syntax article for examples of supported expressions.
- Enter the validation error message you would like users to see when they do not meet the criteria
- Value Validation - check the box if Custom Variables and any future overrides must adhere to regex validation.
- If checked yes, enter the value validation condition. Click the re2 Syntax article for examples of supported expressions.
- For Map types, you need to create validation for both the keys and values
- Enter the validation error message you would like users to see when they do not meet the criteria
- If checked yes, enter the value validation condition. Click the re2 Syntax article for examples of supported expressions.
- Select the users or user groups that should have view, edit, and delete permissions for the custom variable
- Confirm the variable information and type are correct and check the box
- Create Variable
Editing a Custom Variable:
- Under Cloud Management, select Custom Variables
- On the variable you want to edit, click the three dot menu to the right
- From the edit screen, you can edit the Value Default, Description, add value validation, or change the owners. You cannot edit the variable type.
- Additionally, from this edit screen you can “Generate Impact Report”
- This report shows the policies where the custom variable is being used.
Deleting a Custom Variable:
- Under Cloud Management, select Custom Variables
- On the variable you want deleted, click the three dot menu to the right
- A Delete Custom Variable modal will appear. Check the confirmation box and select delete
- If the variable is not currently in use by a policy, it will be successfully deleted.
- If the variable is currently in use by a policy, you will be notified that Kion was unable to delete the variable with an option to review it’s current associations.
Managing Custom Variable Overrides
Setting Overrides:
- Navigate to the OU, Project, or Account detail pages for where the override needs to be set.
- From OU or Project Details, navigate to the “Cloud Management” > “Custom Variables” tab
- If at Account details, navigate to the “Custom Variables” tab
- There are two ways to set an override:
- Click the “add” button.
- To override a custom variable that already exits in the system, select “Override Existing Variable” and select from the list.
- To override a custom variable that had not yet been created, select “Create New and Override.” You will be taken through a workflow to both create a new custom variable and then set an override for it at the level where the workflow began.
- From the “All” tab, click a custom variable’s 3 dot menu and select “Override.”
- Click the “add” button.
- When setting an override, depending on the custom variable type, you can override the value(s) or the key: value pairs.
Managing/ Removing Overrides:
- To make changes to the values or key-value pairs for a custom variable override, click “Manage” from the override’s 3 dot menu.
- To remove a custom variable override, click “Remove” from the override’s 3 dot menu.