Skip to content

Instantly share code, notes, and snippets.

@fvoges
Created March 30, 2022 08:09
Show Gist options
  • Save fvoges/81f5fe149efa610e463e8f9ec7af8422 to your computer and use it in GitHub Desktop.
Save fvoges/81f5fe149efa610e463e8f9ec7af8422 to your computer and use it in GitHub Desktop.
How to download Terraform providers for off-line use

Terraform providers for off-line use

VERSION="3.4.0"
OS="linux"
ARCH="amd64"

# Provider URL https://releases.hashicorp.com/terraform-provider-vault/$VERSION/terraform-provider-vault_$VERSION_$OS_$ARCH.zip

# if you extract the zip file:
mkdir -p .terraform.d/plugins/registry.terraform.io/hashicorp/vault/$VERSION/$OS_$ARCH
cd terraform-provider-vault_$VERSION_$OS_$ARCH.zip .terraform.d/plugins/registry.terraform.io/hashicorp/vault/$VERSION/$OS_$ARCH

# if you use the zip file directly
mkdir -p .terraform.d/plugins/registry.terraform.io/hashicorp/vault/$VERSION
cd terraform-provider-vault_$VERSION_$OS_$ARCH.zip .terraform.d/plugins/registry.terraform.io/hashicorp/vault/$VERSION

tags: terraform, offline, provider, mirror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment