jenkins-x / terraform-aws-eks-jx

A Terraform module for creating Jenkins X infrastructure on AWS
Apache License 2.0
63 stars 41 forks source link

Terraform plan fails using aws tf version 3.73.0 #336

Closed babadofar closed 2 years ago

babadofar commented 2 years ago

Summary

Trying to create a cluster using Vault, setting only the required input variables, fails with "read_capacity can not be set when billing_mode is "PAY_PER_REQUEST"

Steps to reproduce the behavior

Creating new git repos for terraform and cluster, run terraform init, then terraform plan

Expected behavior

It installs

Actual behavior

Fails with

  read_capacity can not be set when billing_mode is "PAY_PER_REQUEST"
  write_capacity can not be set when billing_mode is "PAY_PER_REQUEST"

Terraform version

The output of terraform version is:

Terraform v1.0.7
on darwin_amd64
+ provider registry.terraform.io/hashicorp/aws v3.73.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/helm v2.4.1
+ provider registry.terraform.io/hashicorp/kubernetes v2.7.1
+ provider registry.terraform.io/hashicorp/local v2.1.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/hashicorp/template v2.2.0
+ provider registry.terraform.io/terraform-aws-modules/http v2.4.1

Your version of Terraform is out of date! The latest version
is 1.1.4. You can update by downloading from https://www.terraform.io/downloads.html```

I could fix the problem by adding a versions.tf file in my repo, and setting

terraform {
  required_providers {
    aws = "3.72.0"
  }
}