AWS Builder Center

How to fix terraform breakout error in helm v3.0.0

Fix terraform error due to helm breakout error in v3.0.0

Series: AWS and Terraform (4 articles)

  1. …
  2. 3
    How to fix terraform breakout error in helm v3.0.0 This article
I was running my automation pipeline to upgrade my AWS Kubernetes version using Terraform. I had already run the pipeline in lower environment, and I am executing the same pipeline in higher environment.
I do not expect any error in this version upgrade; however, I got the below error: Error: Blocks of type "Kubernetes" are not expected here.
I realized there is breakout change in latest version of Helm for AWS Terraform. However, I did not expect to impact me.
I changed the provider.tf as shown below and rectified the issue. Now I can handle the required changes when I upgrade to Helm v3.0.0.


Original Code

terraform { required_providers {
helm = {
source = "hashicorp/helm"
version = ">= 3.0.0"
}
}}

After Code Changed

terraform { required_providers {
helm = {
source = "hashicorp/helm"
version = "= 2.17.0"
}
}}

Series: AWS and Terraform (4 articles)

  1. …
  2. 3
    How to fix terraform breakout error in helm v3.0.0 This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article