A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.hashicorp.com/terraform/cloud-docs/vcs/private below:

Connecting to Private VCS Providers - HCP Terraform | Terraform

Connect to Private VCS Providers

Connect HCP Terraform to your private VCS provider using a self-hosted HCP Terraform agent to use HCP Terraform within your private network without exposing your provider to the public internet.

Note: You can connect HCP Terraform to private VCS providers on the HCP Terraform Premium Edition. Refer to HCP Terraform pricing for details.

You can use HCP Terraform agents to connect HCP Terraform to your private VCS providers. The following are examples of private VCS providers that you can manage locally on your private network:

For more information about HCP Terraform agents, refer to the HCP Terraform agent documentation.

You must meet the following requirements to configure a connection to your private VCS provider:

Before you start your HCP Terraform agent, you must create an agent pool and token. Refer to Create an Agent Pool for a list of steps to create an agent pool.

To configure your HCP Terraform agent with private VCS support, you must set the following environment variables in the environment you run the agent. You can also set these environment variables with optional command-line flags.

Variable Value Command-Line Flag _TFC_AGENT_REQUEST_FORWARDING_ENABLED true TFC_AGENT_REQUEST_FORWARDING true -request-forwarding TFC_AGENT_ACCEPT A comma-separated list of values that must include ingress. Refer to Install and Run Agents for more information. -accept

Below is an example command to start the HCP Terraform agent:

$ export TFC_AGENT_TOKEN=<...>
$ _TFC_AGENT_REQUEST_FORWARDING_ENABLED=true \
  tfc-agent \
  -name private-vcs-test-01 \
  -request-forwarding=true \
  -accept "ingress" \
  -log-level "debug"

To create a private VCS connection, complete the following steps:

  1. Sign in to HCP Terraform or Terraform Enterprise and navigate to the organization where you want to add the VCS connection.
  2. Choose Settings from the sidebar, then click Providers.
  3. Click Add a VCS provider.
  4. Select your VCS Provider.This must be a self-managed provider, such as GitHub Enterprise.
  5. Under VCS Access, select “Private”.
  6. Select the agent pool that you created for private VCS.
  7. The remainder of the setup follows the standard VCS setup workflow. Refer to the standard VCS setup instructions for provider specific instructions.

There are two sources of information to help diagnose issues with Private VCS and the HCP Terraform agent:

  1. HCP Terraform agent logs
  1. VCS events in HCP Terraform (Organization Settings > Version Control > Events)

To aid in troubleshooting, you can increase the verbosity of the HCP Terraform agent's log messages to debug and trace and retry the attempted action. Refer to Install and Run Agents for more information.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4