Troubleshooting "Unsupported block type" errors with Helm provider v3.0+
Last updated: July 14, 2025
If you encounter "Unsupported block type" errors in your Terraform configuration when using dynamic "set" blocks with the Helm provider, this is likely due to stricter validation introduced in Helm provider version 3.0.0 and above.
Identifying the Issue
You can identify this issue by checking your initialization logs for the Helm provider version. The error typically manifests as:
Error: Unsupported block type
on .terraform/modules/path/to/file.tf line XX, in resource "helm_release" "this":
XX: dynamic "set" {
Blocks of type "set" are not expected here.
Resolution
To resolve this issue, you have two options:
Pin your Helm provider version to 2.17.0 or earlier in your Terraform configuration:
terraform {
required_providers {
helm = {
source = "hashicorp/helm"
version = "~> 2.17.0"
}
}
}
OR
Update your Helm configuration to be compatible with version 3.0.0+. Refer to the Helm provider v3.0.0 release notes for specific changes required in your configuration.
We recommend updating your configuration to be compatible with newer versions rather than pinning to older versions, as this ensures you receive security updates and new features.