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:
There are two sources of information to help diagnose issues with Private VCS and the HCP Terraform agent:
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