0

Does anyone have ideas/experience with using Terraform in an environment disconnected from the Internet?

Trying to determine the best approach for acquiring the needed providers and resources to do deployments in a disconnected environment.

BMW
  • 42,880
  • 12
  • 99
  • 116
phydeauxman
  • 1,432
  • 3
  • 26
  • 48

1 Answers1

3

You can use the plugin cache and place the providers downloaded from https://releases.hashicorp.com/ or populated automatically via terraform init.

Configure the path to the plugin cache directory in .terraformrc:

plugin_cache_dir = "$HOME/.terraform.d/plugin-cache"

or via an environment variable:

export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"

This is well-described in the Terraform documentation.

StephenKing
  • 36,187
  • 11
  • 83
  • 112