Skip to main content

How to Access Environment Variables in the UI

Overview​

When a user provides input via Blueprint Variables, you pass values to your script using environment variables, or when you want to access Shipyard's context-aware platform environment variables, you'll sometimes want to make sure that you can access these values in the UI. This how to guide will walk you through the steps to access environment variables.

Steps​

For this example, our environment variable will be named OPERATOR_A.

  1. Navigate to any Vessel.
  2. In any input field, other than code, write ${OPERATOR_A}.
  3. Save the Vessel.
success

You've now successfully accessed an environment variable in the UI.