> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/tanzu/add-config-files.md).

# Add config files for TAS

Add config files for TAS by using Harness.

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 will cover using these configuration files for Tanzu Application Service (TAS, formerly PCF).

## What you will learn from this topic

* How to add a config file to a TAS service using the Harness file store.
* How to add a config file to a TAS service from a GitHub repository.
* How to reference an added config file as an expression in a Tanzu Command step.
* After completing this topic, you will have a config file attached to your TAS service definition that you can reference during pipeline execution.

{% tabs %}
{% tab title="Harness" %}

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](/continuous-delivery/use-continuous-delivery/cd-building-blocks/services/add-inline-manifests-using-file-store.md).
5. Select **Add** to attach multiple files as a single config file.
6. Select **Submit**. ![](https://3694223630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1JhZ4oKIppwY7d5AhPj%2Fuploads%2Fgit-blob-cadd3a6b4c99728ca2f4ed9cb2a2d8780ead7fdf%2Fconfig-file-harness.png?alt=media)

For more information, go to [Use config file in your deployments](/continuous-delivery/use-continuous-delivery/cd-building-blocks/services/cd-services-config-files.md).

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")>"`
{% endtab %}

{% tab title="GitHub" %}

1. Select a GitHub connector, and select **Continue**. You can also add a [new GitHub connector](https://developer.harness.io/docs/platform/use-harness-platform/connectors/code-repositories/git-hub-connector-settings-reference) here and reference it.
2. In **Config File Details**, enter a config file name.
3. Enter the name of the repository you want to reference from your GitHub account.
4. In **Git Fetch Type**, select **Latest from Branch**, and then specify the **Branch** name.
5. Enter the file path for config files from GitHub.
6. Select **Add File** to attach multiple files as a single config file.
7. Select **Submit**.

![](https://3694223630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1JhZ4oKIppwY7d5AhPj%2Fuploads%2Fgit-blob-3aea2b3dd51297f3a22749fa1cc1d5968cdbb94a%2Fconfig-file-git.png?alt=media)

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("shellsec")>"`
{% endtab %}
{% endtabs %}

***

## Next steps

* [Add inline service using file store](/continuous-delivery/use-continuous-delivery/cd-building-blocks/services/add-inline-manifests-using-file-store.md): add config files directly from the Harness file store.
* [Use config file in your deployments](/continuous-delivery/use-continuous-delivery/cd-building-blocks/services/cd-services-config-files.md): reference config files in your pipeline executions.
* [GitHub connector settings reference](https://developer.harness.io/docs/platform/use-harness-platform/connectors/code-repositories/git-hub-connector-settings-reference): configure a GitHub connector to source config files from a repository.

{% @harness-feedback/feedback %}
