seqeralabs / terraform-seqera-aws

Apache License 2.0
5 stars 3 forks source link

Create a Troubleshooting steps section in the README #36

Open ashseqera opened 7 months ago

ashseqera commented 7 months ago

Noticed while testing the module that if your local kube config is messed up then you might face the following error while trying to access the newly created cluster ,

│ Error: The configmap "aws-auth" does not exist
│ 
│   with module.terraform-seqera-aws.module.eks.kubernetes_config_map_v1_data.aws_auth[0],
│   on .terraform/modules/terraform-seqera-aws.eks/main.tf line 562, in resource "kubernetes_config_map_v1_data" "aws_auth":
│  562: resource "kubernetes_config_map_v1_data" "aws_auth" {
│ 
╵
╷
│ Error: Unauthorized
│ 
│   with module.terraform-seqera-aws.kubernetes_namespace_v1.this[0],
│   on .terraform/modules/terraform-seqera-aws/main.tf line 205, in resource "kubernetes_namespace_v1" "this":
│  205: resource "kubernetes_namespace_v1" "this" {
│ 

Solution: Clear out ~/.kube/config and try again. Remember to take a back up of the file before removing it .