Configuring Environment Variable

Introduction

In the Environments module, variables, which are also referred to as Environment Variables, allow the client application environment to access Vahana resources. After environment variables are created, you can export them to client application environment.

On the Vahana cloud platform, environment variables are created and exported if the client organization does not want to provide the direct access to servers, citing security reasons. Many client organizations may ask for other alternative solutions to share resources, deliverables, builds, and other project related artifacts for ongoing or future software development projects.

In that critical case, the Vahana technical team first creates EXPORT type VRT and therefore uses it to configure an environment. When you configure an environment by using the EXPORT type VRT, you can only use that environment to export environment variables. You cannot use that environment to sync the resources.

Thus, you can add several environment variables to the EXPORT type environment. After you add environment variables to the environment, you can export them by clicking Export button on the dashboard of the respective environment.

Note:- In the Environments module, adding variable to an environment means configuring variables.

When you add the environment variable to an environment, you configure the environment variable.  The configuration details of the environment variable contain the details of resource (server, database repository, application service) that you want to share with the client application environment. You can share applications, services, and other resources by exporting the environment variable to the client application environment.

To access these resources, the client’s server can import these environment variables. You can configure the environment variable as follows:

To configure environment variable:

  1. On the Vahana dashboard, find the Variables tab.
  1. Click the Variables tab, and then click Add Variable to display the Create Variable dialog box.
  1. On the Create Variable dialog box, enter or select values as follows:
Box/ListDescription
Variable NameIn this box, enter the name of variable (For example:- Demo_Var1)
Variable ScopeClick this list to select any of the following values:

a. Server Only
Select this option to grant access to the exported variables on the server machine only.  

b. Server and Mobile Select this option to grant access to the exported variables on the server machine and mobile phone device.
Variable Declaration SourceClick this list to select any of the following values:

a. Cloud
Select this value if you want to give the access of the environment variable on the global level. Access on the global level means that the users from the external domain can access the environment variable based on the importing rights and permission.  

b. VRT
Select this value if you want to provide the access of the environment variable on the VRT level only.
Sand_box, UATThe Create Variable dialog box displays different boxes of all the available environments. In these boxes, you can enter IP address/URL (detail of the resource) that you want to export to the client application environment. These boxes only become active after you choose CLOUD in the Variable Declaration Source list.
  1. After you enter or select the values in the boxes, click Create, and the Environment Manager module creates a new environment variable.

Viewing Environment Variable

On the Vahana dashboard, when you click the Variables tab, the dashboard displays the list of earlier created environment variables.

The list displays the variables’ details under different columns/fields that are described as follows:

Field/ColumnDescription
Variable NameThis field displays the name of environment variable.
SAND_BOX, UAT, UATONEThese fields denote the name of existing environment. The field of specific environment displays any of the following icons:
a. ():- This icon specifies that the environment variable is configured for the respective environment.
 
b. ():- This icon specifies that the environment variable is not configured for the respective environment.
ActionThis column displays three icons, which are described as below:
a. ():- This icon is used to modify the configuration details of the environment variable.

b. ():- This icon is used to view the configuration details of the environment variable.

c. ():- This icon is used to delete the profile of the environment variable.  

Exporting Environment Variable

You can export the environment variable by clicking the Export button on the dashboard of Environment module. On the dashboard, the Export button becomes available if you have configured the respective environment by using the EXPORT type VRT. To know more about VRT, visit the post: Configuring Vahana Run Time.

To export the environment variable:

  1. On the Vahana dashboard, click the Environment tab to display the list of available environments.
  1. Click the (EXPORT) type environment (for example, UATONE) to display its details.
  1. On the dashboard, click Export to successfully export the environment variable to the client environment.

Was this article helpful?
YesNo