DEV Community

Discussion on: Deploying a highly available Vault cluster on Amazon EKS using Terraform

Collapse
 
tbadmus profile image
tbadmus

Hello
I followed your steps in detailed in the README for the code and ran into an issue with kubernetes version (1.17), it failed on that. After reading through AWS EKS documentation and saw end of support for that version i moved to the next version (1.18), deployment was running fine but later failed with an error "Unauthorized".
A further research showed it was a terraform provider (2.8.0) issue.
My question is, how do i get around the reported issue or have you been able to deploy the code as-is lately.
Thanks
BTW: Loved the article, very detailed .... keep up the good work sharing your knowledge!

Collapse
 
chabane profile image
Chabane R. • Edited

Thank you for your feedback

I forgot to fix the terraform provider version in the version.tf. You should fix the terraform provider version to be sure your terraform resources will continue to work with the AWS APIs.

Collapse
 
tbadmus profile image
tbadmus

Thanks for the quick response, i will do as advised.

Collapse
 
tbadmus profile image
tbadmus

So what version of terraform do you advice i stick to for this?

Thread Thread
 
chabane profile image
Chabane R. • Edited

As the article has been written last year (at least 3.37.0), you should fix the terraform version with this one

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 3.0"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode