<p>My eks.tf file</p>
<pre><code>data &quot;aws_availability_zones&quot; &quot;azs&quot; {}

module &quot;myapp-vpc&quot; {
  source  = &quot;terraform-aws-modules/vpc/aws&quot;
  version = &quot;3.7.0&quot;
  
  name = &quot;myapp-vpc&quot;
  cidr = var.vpc_cidr_block
  private_subnets = var.private_subnets_cidr_blocks
  public_subnets = var.public_subnets_cidr_blocks
  azs = data.aws_availability_zones.azs.names

  enable_nat_gateway = true
  single_nat_gateway = true
  enable_dns_hostnames = true

  tags = {
   &quot;kubernetes.io/cluster/myapp-cluster&quot; = &quot;shared&quot;
  }

  private_subnet_tags = {
   &quot;kubernetes.io/cluster/myapp-cluster&quot; = &quot;shared&quot;
   &quot;kubernetes.io/role/internal-elb&quot; = 1
  }

  public_subnet_tags = {
   &quot;kubernetes.io/cluster/myapp-cluster&quot; = &quot;shared&quot;
   &quot;kubernetes.io/role/elb&quot; = 1
  }
</code></pre>
<p>I got this error</p>
<pre><code>│ Error: error creating EKS Cluster (myapp-cluster): InvalidParameterException: unsupported Kubernetes version
│ {
│   RespMetadata: {
│     StatusCode: 400,
│     RequestID: &quot;073bff37-1d18-4d11-82c9-226b92791a70&quot;
│   },
│   ClusterName: &quot;myapp-cluster&quot;,
│   Message_: &quot;unsupported Kubernetes version&quot;
│ }
│ 
│   with module.eks.aws_eks_cluster.this[0],
│   on .terraform/modules/eks/main.tf line 11, in resource &quot;aws_eks_cluster&quot; &quot;this&quot;:
│   11: resource &quot;aws_eks_cluster&quot; &quot;this&quot; {
</code></pre>
<p>I went for terraform init and plan.
What should I check in my terraform.tfstate file?</p>

Richard Rublev
<p>Have you tried to change the versions of kubernetes/cluster? I had the same issue and I changed the version of the cluster and it worked.</p>
