Use variables
Depending on the action and/or operation you are defining in a flow, there are several ways you can add global and local variables to your flow.
Connection variables are available for action nodes and CLI nodes. When a node needs a cloud connection, choose a connection variable from the Connection variables section on the node's Connection tab (for action nodes) or directly in the connection dropdown (for CLI nodes). See Use a connection variable in an action node.
Add variables to parametersβ
You can use variables in action nodes.
Connection variables are not supported in node parameters.
-
Add an action node to your flow (or edit an existing one).
-
Depending on the parameters available for the action, select the plus button (+) next to the parameter where you want to add a variable.
-
Select Variables and expand Global Variables or Local Variables, depending on your requirements, and select the variable you want.

For parameters that expect a map (key-value structure), you can reference a variable or output from a previous node that contains the whole map. The flow uses the entire map at runtime, so you do not have to enter each key-value pair manually.
Add a connection variable in an action nodeβ
A connection variable is a variable whose value is one of your organization's AWS or GCP connections. Action nodes and CLI nodes can use that variable instead of picking a connection separately on every node. You update the connection in one place, which makes flows easier to reuse across accounts or environments and saves you from editing each node when the target connection changes.
Connection variables can be used in action nodes and CLI nodes. They are not available for use with other node types.
-
Create a variable with Type connection.
-
Add an action node to your flow (or edit an existing one).
-
Select the node's Connection tab.
-
Expand the Connection dropdown. A Connection variables section is displayed.

The connections available match the action you are configuring. For example, for AWS actions only AWS connection variables are shown.
-
Under Connection variables, select the global or local connection variable you want.

Add a connection variable in a CLI nodeβ
You can also use connection variables in CLI nodes.
-
Create a variable with Type connection.
-
Add a CLI node to your flow (or edit an existing one).
-
In Parameters, under Cloud connection provider, choose Google Cloud (GCP) or Amazon Web Services (AWS).
-
Open the Connection dropdown. The Connection dropdown shows both connections and connection variables.
-
Select the connection variable you want. At runtime, CloudFlow resolves the variable to its underlying connection ID. Updating the connection variable changes which connection the CLI node uses without editing the node itself.
Filter using variablesβ
You can filter on variables in a flow.
-
Add a Filter node to your flow (or edit an existing one).
-
Select +Add a new filter (or edit an existing one).
-
Select the plus (+) button next to Value.
-
Select Variables and expand Global Variables or Local Variables, depending on your requirements, and select the variable you want.

Add variables to messagesβ
If you have an action node that requires approval, you can add variables to the notification message that requests approval for an action.
-
Add a node that requires approval to your flow (or edit an existing one).
-
In Parameters, select Require approval for this action.
-
In Message, enter your message. Whereever you want to add a variable, select the plus button (+).
-
Select Variables and expand Global Variables or Local Variables, depending on your requirements, and select the variable you want to add to the message.
