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
.
- Navigate to any Vessel.
- In any input field, other than code, write
${OPERATOR_A}
. - Save the Vessel.
success
You've now successfully accessed an environment variable in the UI.