Skip to main content

Define Your Tanzu Target Infrastructure

In the Environment, you create Infrastructure Definitions that describe your target deployment environments. Tanzu Application Service (TAS, formerly PCF) Infrastructure Definitions specify the following:

  • The TAS deployment type.
  • The TAS Cloud Provider that you added, as described in Add Cloud Providers.
  • The TAS organization to use.
  • The target TAS space that the app you are deploying is scoped to.
  • Any specific Harness Services that you want to scope the Infrastructure Definition to. If you choose not to scope to specific Services, the Infrastructure Definition may be used with any TAS Service.

Before You Begin

Step 1: Add Infrastructure Definition

To add an Infrastructure Definition, do the following:

  1. In your Environment, click Add Infrastructure Definition. The Infrastructure Definition dialog appears.

The Infrastructure Definition dialog has the following fields.

Step 2: Name

Enter a name for your Infrastructure Definition. You will use this name to select this Infrastructure Definition when you create Harness Workflows.

Step 3: Cloud Provider Type

Select Pivotal Cloud Foundry.

Step 4: Deployment Type

Select Pivotal Cloud Foundry.

Step 5: Cloud Provider

Select the Cloud Provider to use to connect to the foundation. This will be one of the TAS Cloud Providers you set up in Add Cloud Providers.

The roles associated with the TAS user account used in the Cloud Provider determine what orgs will appear in the Organization setting.

Step 6: Organization

The active TAS orgs available to the TAS user account used in the Cloud Provider are listed. Select the TAS org for the development account.

Step 7: Space

Select the space where the application you are deploying is scoped.

Step 8: Scope to Specific Services

Select this option to scope this Infrastructure Definition to the Harness TAS Service you want to deploy.

If you do not select this setting, you can select this Infrastructure Definition when you create a Workflow for any TAS Service.

Option: Use Variables in the Infrastructure Definition

You can use Service variables in the TAS Infrastructure Definition Organization and Space settings:

This allows you to set the orgs and spaces in a Service, and have the Infrastructure Definition act as a template that multiple Services can use.

The orgs specified must be available to the TAS user account used to set up the TAS Cloud Provider used in the Infrastructure Definition.

Next Steps