Error AtlasError Documentation and Resolution

Terraform documented errors

Browse documented Terraform errors with exact messages, troubleshooting context, and practical remediation steps.

Back to all products

Configuration errors

no Terraform configuration filesTerraform command ran without configuration files in the working directoryTerraform could not find any .tf configuration in the current working directory, so commands that depend on configuration cannot proceed normally.
Unsupported argumentTerraform configuration contains an unsupported argumentTerraform found an argument in a resource, module, or provider block that the target schema does not support.
Missing required argumentTerraform configuration is missing a required argumentTerraform rejected the configuration because a required argument for a resource, module, or provider block was omitted.
Invalid function argumentTerraform could not convert the value to boolTerraform could not convert the supplied value to a boolean because tobool only accepts booleans, null, or the exact strings true and false.
Invalid function argumentTerraform could not convert the value to numberTerraform could not convert the supplied value to a number because tonumber only accepts numbers, null, or strings containing decimal numeric text.
Reference to undeclared local valueTerraform could not find the referenced local valueTerraform could not evaluate the expression because the referenced local value was never declared in the current module.
Invalid expressionTerraform could not parse the expressionTerraform could not parse the expression because the value does not form a valid HCL expression in that position.
CycleTerraform detected a dependency cycleTerraform found a circular dependency in the resource graph, so it could not determine a valid order to create or update the resources involved.
Invalid "each" attributeTerraform each object does not contain the referenced attributeTerraform could not evaluate the each object because the expression referenced an attribute that does not exist for the current for_each context.
Unsupported block typeTerraform found a block type that is not expected hereTerraform found a nested block where the schema expected an argument assignment or a different configuration structure.
Invalid characterTerraform found an invalid character in the configurationTerraform could not parse the configuration because it encountered a character sequence that is not valid in the current expression or HCL syntax context.
Invalid referenceTerraform found an invalid resource referenceTerraform could not interpret the reference because it does not follow Terraform's expected resource, attribute, or collection access pattern.
Invalid function argumentTerraform one function received too many elementsTerraform could not use one because the collection contains more than one element, while one only accepts zero-or-one collections.
Missing resource instance keyTerraform requires a specific resource instance keyTerraform cannot access an attribute on a resource that uses for_each or count unless the expression identifies a specific instance or iterates over all instances.

Installation errors

Providers errors

locked provider does not match configured version constraintTerraform dependency lock file is inconsistent with provider constraintsTerraform found that the provider version pinned in the dependency lock file no longer satisfies the configured provider version constraints.
Failed to query available provider packagesTerraform failed to query available provider packagesTerraform could not select or retrieve provider versions that satisfy the current configuration and lock file constraints.
hashicorp/terraform is not compatible with Terraform v0.11 or laterTerraform hashicorp/terraform provider is not compatibleTerraform reported a provider compatibility problem because the configuration declares the legacy `hashicorp/terraform` provider. Modern Terraform versions include `terraform_remote_state` through the built-in provider path instead, so the old provider should not be used.
Incompatible provider versionTerraform incompatible provider version for current platformTerraform reported an incompatible provider version because the selected provider release does not publish a package for the operating system and architecture you are running on. This often appears on newer CPU architectures, niche platforms, or when an older provider version has limited build targets.
No provider version matches the given constraintsTerraform no provider version matches the given constraintsTerraform reported that no provider version matches the current constraints because the configured version requirements are too restrictive, contradictory across modules, or incompatible with what the provider registry actually offers.
the current package doesn't match any of the checksums previously recorded in the dependency lock fileTerraform provider checksum does not match the dependency lock fileTerraform refused to install a provider because the package checksum did not match what was recorded in .terraform.lock.hcl for that provider version.

State errors

Terraform Errors | Error Atlas