Module not installed Terraform Origin: Platform & cloud OSI layer 7 · Application Last updated 5 Nov 2026

Terraform: Error: Module not installed — This module is not yet installed. Run "terraform init" to install all modules required by this configuration

A module block references a module that hasn't been downloaded to .terraform/modules.

Exact message you may see Error: Module not installedThis module is not yet installed. Run "terraform init" to install all modules required by this configurationError: Module not installed module.vpcError: Module source has changedError: Module version requirements have changed
Seen on: Terraform

Meaning

Run terraform init (or terraform get) after adding or changing a module block or its version/source. CI should init every job. For local paths, verify the relative source = "./modules/x" exists. terraform init -upgrade refreshes versions.

Common causes

  • New module added without init
  • Source/version changed
  • .terraform missing/cached stale in CI
  • Wrong local path
  • Registry module unavailable

⚡ Quick fix

  1. terraform init (or terraform get)
  2. Check source path/URL/version
  3. terraform init -upgrade after version changes

Detailed fix by platform

Terraform

  1. terraform init && terraform validate

How to diagnose

  1. Init — Run after the change?
  2. Path — Exists?
  3. Version — Resolvable?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

Backend initialization required — Terraform: Error: Backend initialization required, please run "terraform init" — Reason: Initial configuration of the requested backend "s3" (Terraform)Backend initializatio…Failed to download module (git/registry/path) — Terraform: Error: Failed to download module — Could not download module "vpc" (main.tf:1) source code from "git::https://github.com/org/repo.git": error downloading (Terraform)Failed to download mo…Failed to install provider (download failed) — Terraform: Error: Failed to install provider — Error while installing hashicorp/aws v5.40.0: could not query provider registry / Get "https://releases.hashicorp.com/...": dial tcp: i/o timeout (Terraform)Failed to install pro…Failed to query available provider packages — Terraform: Error: Failed to query available provider packages — Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints (Terraform)Failed to query avail…Invalid AWS Region — Terraform: Error: Invalid AWS Region: us-east-3 / Error: configuring Terraform AWS Provider: validating provider credentials: operation error STS: GetCallerIdentity (Terraform)Invalid AWS RegionNo valid credential sources found (AWS provider) — Terraform: Error: No valid credential sources found — failed to refresh cached credentials, no EC2 IMDS role found / Error: configuring Terraform AWS Provider: no valid credential sources (Terraform)No valid credential s…UnauthorizedOperation / AccessDenied during Terraform apply — Terraform: Error: creating EC2 Instance: UnauthorizedOperation: You are not authorized to perform this operation. User: arn:aws:iam::123:user/ci is not authorized to perform: ec2:RunInstances (Terraform)UnauthorizedOperation…Module no…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.