Skip to main content

Add config files for TAS

Service configuration files enable you to specify information in the Harness service that can be referenced in other parts of the Harness application. In this topic, we'll cover using these configuration files for Tanzu Application Service (TAS, formerly PCF).

  1. In the Harness service, in Config Files, select Add Config File.

  2. In Config File Source, select Harness, and then select Continue.

  3. In Config File Identifier, enter a name for the file.

  4. In File/Folder Path, select the config file from Harness file store.

    For more information, go to add inline service using file store.

  5. Select Add to attach multiple files as a single config file.

  6. Select Submit.

For more information, go to Use config file in your deployments.

You can view the config files added to your service definition.

You can reference this config file as an expression in a pipeline from the Execution tab.

For example, in a Tanzu Command step, you can reference the config file by entering the following script in the step's Step Parameters> Script> Inline.

echo "<+configFile.getAsString("shell")>"