Error AtlasError Documentation and Resolution

Terraform found a block type that is not expected here

Error: Unsupported block type

Terraform found a nested block where the schema expected an argument assignment or a different configuration structure.

Unsupported block typeconfiguration
Error: Unsupported block type
  • A nested block was used where Terraform expects an argument with an equals sign.
  • Configuration was copied from a different provider version, syntax style, or Terraform generation.
  • The block name is valid elsewhere but not in the current resource or module context.
  1. Check the schema for the resource or block and confirm whether the name should be an argument or a nested block.
  2. If Terraform suggests using an equals sign, rewrite the block as an argument assignment.
  3. Compare the configuration with current provider documentation rather than older examples.
Terraform 0.12 compatibility for providers
Terraform Unsupported block type: causes and fixes | Error Atlas