Using workflows

Managing connections

Connections allow you to link Relay to other services you use, so that incoming events and outgoing actions can be automated across your whole toolchain.

Adding connections

To add connections, you must have the administrator role on your account. Connections are global to the Relay account and are available to any workflows and authorized users on the account. See Managing Users for more on access control.

Use the Connections link in the left navigation bar to show currently configured connections and add new ones. Currently, Relay supports connection types of AWS, Azure, Slack, and SSH keys. If there are additional tools and services you want to provide credentials to, you can use secret values instead of a provider-specific connection. These work almost the same, but secrets are specific to a workflow instead of being global. If you'd like us to support a specific service, please let us know via Github issues!

Expand the Setup menu then choose the connection to configure

Using connections

To use a connection in a workflow, set a field's value to !Connection and provide a map containing the connection's name and type. For example:

  - name: describe-instances
    image: relaysh/ec2-step-describe-instances
        connection: !Connection { type: aws, name: my-aws-account }

If you reference a connection in a workflow you're viewing or editing on the web app, Relay will check that the connection actually exists and prompt you to create it if not. To set the required values for the connection: 1. On the workflow's page, expand the Setup menu on the header bar. 2. Find the connection you specified and click + to add the connection values.

Once you create a connection, you cannot view its values again; you can only overwrite or delete them.

When you run a workflow, steps that need a connection request it from Relay's secret store. You can use secrets inside a step with one of the Relay SDKs. This example snippet uses the Python SDK to make use of the connection in the workflow above:

from relay_sdk import Interface, Dynamic as D

relay = Interface()
sess = boto3.Session(

This is a partial snippet; see the full step code here.

Implementation details

Secrets and connections are very similar; see the implementation section of the secrets docs for more information on how they work and guidance on how to use them.