Interview Prep/Terraform/Pipelines Terraform Cloud and OpenTofu

Your HCP Terraform runs can't reach an internal Git server. What are your options?

IntermediateScenarioPipelines Terraform Cloud and OpenTofu
Answer

Situation read → VCS or private module sources aren't reachable from the managed runners.

What I'd do →

  1. Publish modules to the HCP private registry instead of private Git URLs.
  2. Use agents in your network for runs that need internal access.
  3. Or run CLI-driven, with your CI uploading the configuration.

Why → Moving the dependency to where the runner can reach it is easier than opening network paths.

Interview tip → Note that agents handle runs, but VCS webhooks still need to reach HCP.

All Terraform questions Roadmap: Terraform in production

More on Pipelines Terraform Cloud and OpenTofu