issue with lesson 125 eks cluster terraform in azure pipeline
jonahtimothy opened this issue · 2 comments
We have been using this Terraform for almost 3 weeks and in Azure Pipeline to create the EKS cluster. The cluster creation was successful initially and was working fine. Since last week, it stopped working in the pipeline and started complaining about the below error. It looks like the token to connect to the Kubernetes cluster is lost. When I tried to resolve it with a few suggestions on the internet to add load_config_file = false under the provider Kubernetes, it didn't help to resolve the issue. Kindly help me understand this to unblock this issue.
On a side note, I'm able to access the kubernetes resources and AWS resources using the CLIs with the same credentials.
The error details are below.2023-06-11T10:15:49.2436238Z ##[section]Starting: Terraform : plan 2023-06-11T10:15:49.2442561Z ============================================================================== 2023-06-11T10:15:49.2442703Z Task : Terraform 2023-06-11T10:15:49.2442774Z Description : Execute terraform commands to manage resources on AzureRM, Amazon Web Services(AWS) and Google Cloud Platform(GCP) 2023-06-11T10:15:49.2443001Z Version : 4.218.21 2023-06-11T10:15:49.2443074Z Author : Microsoft Corporation 2023-06-11T10:15:49.2443164Z Help : [Learn more about this task](https://aka.ms/AAf0uqr) 2023-06-11T10:15:49.2443265Z ============================================================================== 2023-06-11T10:15:49.4956817Z [command]/opt/hostedtoolcache/terraform/1.4.6/x64/terraform providers 2023-06-11T10:15:52.9468494Z 2023-06-11T10:15:52.9469315Z Providers required by configuration: 2023-06-11T10:15:52.9470068Z . 2023-06-11T10:15:52.9471169Z ├── provider[registry.terraform.io/hashicorp/helm] 2023-06-11T10:15:52.9471793Z ├── provider[registry.terraform.io/hashicorp/kubernetes] 2023-06-11T10:15:52.9472331Z ├── provider[registry.terraform.io/hashicorp/aws] ~> 4.0 2023-06-11T10:15:52.9473222Z ├── provider[registry.terraform.io/gavinbunney/kubectl] >= 1.14.0 2023-06-11T10:15:52.9474363Z ├── module.allow_assume_eks_admins_iam_policy 2023-06-11T10:15:52.9474892Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9475285Z ├── module.eks_dev_iam_role 2023-06-11T10:15:52.9475786Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9566229Z ├── module.eks_admins_iam_role 2023-06-11T10:15:52.9566582Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9566827Z ├── module.eks_admins_iam_group 2023-06-11T10:15:52.9567123Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9567409Z ├── module.allow_assume_eks_dev_iam_policy 2023-06-11T10:15:52.9567701Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9568025Z ├── module.aws_load_balancer_controller_irsa_role 2023-06-11T10:15:52.9568317Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9568582Z ├── module.cluster_dev_user_iam_user 2023-06-11T10:15:52.9568862Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9569128Z ├── module.eks_dev_iam_group 2023-06-11T10:15:52.9569402Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9569684Z ├── module.allow_eks_admin_access_iam_policy 2023-06-11T10:15:52.9569983Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9570240Z ├── module.cluster_autoscaler_irsa_role 2023-06-11T10:15:52.9570535Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9570746Z ├── module.vpc 2023-06-11T10:15:52.9571026Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.35.0 2023-06-11T10:15:52.9571239Z ├── module.eks 2023-06-11T10:15:52.9571516Z │ ├── provider[registry.terraform.io/hashicorp/aws] >= 3.72.0 2023-06-11T10:15:52.9571821Z │ ├── provider[registry.terraform.io/hashicorp/tls] >= 3.0.0 2023-06-11T10:15:52.9572148Z │ ├── provider[registry.terraform.io/hashicorp/kubernetes] >= 2.10.0 2023-06-11T10:15:52.9572407Z │ ├── module.fargate_profile 2023-06-11T10:15:52.9572984Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 3.72.0 2023-06-11T10:15:52.9573226Z │ ├── module.kms 2023-06-11T10:15:52.9573495Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 3.72.0 2023-06-11T10:15:52.9573766Z │ ├── module.self_managed_node_group 2023-06-11T10:15:52.9574058Z │ ├── provider[registry.terraform.io/hashicorp/aws] >= 3.72.0 2023-06-11T10:15:52.9574309Z │ └── module.user_data 2023-06-11T10:15:52.9574598Z │ └── provider[registry.terraform.io/hashicorp/cloudinit] >= 2.0.0 2023-06-11T10:15:52.9574877Z │ └── module.eks_managed_node_group 2023-06-11T10:15:52.9575159Z │ ├── provider[registry.terraform.io/hashicorp/aws] >= 3.72.0 2023-06-11T10:15:52.9575589Z │ └── module.user_data 2023-06-11T10:15:52.9575895Z │ └── provider[registry.terraform.io/hashicorp/cloudinit] >= 2.0.0 2023-06-11T10:15:52.9576166Z ├── module.allow_eks_dev_access_iam_policy 2023-06-11T10:15:52.9576470Z │ └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9576739Z └── module.cluster_admin_user_iam_user 2023-06-11T10:15:52.9577040Z └── provider[registry.terraform.io/hashicorp/aws] >= 4.0.0 2023-06-11T10:15:52.9577139Z 2023-06-11T10:15:52.9577294Z Providers required by state: 2023-06-11T10:15:52.9577369Z 2023-06-11T10:15:52.9577524Z provider[registry.terraform.io/hashicorp/tls] 2023-06-11T10:15:52.9577631Z 2023-06-11T10:15:52.9577789Z provider[registry.terraform.io/gavinbunney/kubectl] 2023-06-11T10:15:52.9577882Z 2023-06-11T10:15:52.9578046Z provider[registry.terraform.io/hashicorp/aws] 2023-06-11T10:15:52.9578133Z 2023-06-11T10:15:52.9578296Z provider[registry.terraform.io/hashicorp/helm] 2023-06-11T10:15:52.9578390Z 2023-06-11T10:15:52.9578547Z provider[registry.terraform.io/hashicorp/kubernetes] 2023-06-11T10:15:52.9578654Z 2023-06-11T10:15:52.9585347Z [command]/opt/hostedtoolcache/terraform/1.4.6/x64/terraform plan -var region=*** -var access_key=*** -var secret_key=*** -out demo.tfplan -detailed-exitcode 2023-06-11T10:16:01.8441930Z �[0m�[1mmodule.eks_admins_iam_role.data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8447732Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8448820Z �[0m�[1mmodule.eks_dev_iam_group.data.aws_caller_identity.current[0]: Reading...�[0m�[0m 2023-06-11T10:16:01.8449297Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8449882Z �[0m�[1mmodule.eks_dev_iam_group.aws_iam_group.this[0]: Refreshing state... [id=eks-dev]�[0m 2023-06-11T10:16:01.8450298Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8450680Z �[0m�[1mmodule.eks_dev_iam_role.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8454996Z �[0m�[1mmodule.vpc.aws_vpc.this[0]: Refreshing state... [id=vpc-0860677527fc28025]�[0m 2023-06-11T10:16:01.8460731Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8468714Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8521980Z �[0m�[1mmodule.eks_dev_iam_role.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:01.8581061Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:01.8582063Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:01.8589227Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:01.8601130Z �[0m�[1mmodule.cluster_dev_user_iam_user.aws_iam_user.this[0]: Refreshing state... [id=cluster-dev-user]�[0m 2023-06-11T10:16:01.8622981Z �[0m�[1mmodule.vpc.aws_eip.nat[0]: Refreshing state... [id=eipalloc-0b1e88b4add069d4b]�[0m 2023-06-11T10:16:02.1402028Z �[0m�[1mmodule.eks_admins_iam_role.data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.1402989Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.1403778Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1410855Z �[0m�[1mmodule.eks_admins_iam_role.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1419549Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.1431559Z �[0m�[1mmodule.eks_admins_iam_role.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.1441506Z �[0m�[1mmodule.eks_admins_iam_group.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1456486Z �[0m�[1mmodule.eks_admins_iam_group.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.1457266Z �[0m�[1mmodule.eks.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1467985Z �[0m�[1mmodule.eks_admins_iam_group.aws_iam_group.this[0]: Refreshing state... [id=eks-admin]�[0m 2023-06-11T10:16:02.1474184Z �[0m�[1mmodule.eks.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.1510398Z �[0m�[1mmodule.eks.aws_cloudwatch_log_group.this[0]: Refreshing state... [id=/aws/eks/cluster-corro/cluster]�[0m 2023-06-11T10:16:02.1515785Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.1543974Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_region.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1544793Z �[0m�[1mmodule.eks_dev_iam_group.data.aws_caller_identity.current[0]: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.1551799Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_region.current: Read complete after 0s [id=***]�[0m 2023-06-11T10:16:02.1553203Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.1610047Z �[0m�[1mmodule.eks.module.kms.data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1617950Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.1622736Z �[0m�[1mmodule.eks.data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1629360Z �[0m�[1mmodule.eks_dev_iam_role.data.aws_caller_identity.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1630214Z �[0m�[1mmodule.eks.module.kms.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1650628Z �[0m�[1mmodule.eks.module.kms.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.1651492Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_region.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1670504Z �[0m�[1mmodule.allow_eks_admin_access_iam_policy.aws_iam_policy.policy[0]: Refreshing state... [id=arn:aws:iam::015921992120:policy/allow-eks-admin-access]�[0m 2023-06-11T10:16:02.1689606Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_region.current: Read complete after 0s [id=***]�[0m 2023-06-11T10:16:02.1699807Z �[0m�[1mmodule.eks_dev_iam_group.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.1711560Z �[0m�[1mmodule.eks_dev_iam_group.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.1725055Z �[0m�[1mmodule.allow_eks_dev_access_iam_policy.aws_iam_policy.policy[0]: Refreshing state... [id=arn:aws:iam::015921992120:policy/allow-eks-dev-access]�[0m 2023-06-11T10:16:02.2119269Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_partition.current: Reading...�[0m�[0m 2023-06-11T10:16:02.2136039Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_partition.current: Read complete after 0s [id=aws]�[0m 2023-06-11T10:16:02.2145627Z �[0m�[1mmodule.cluster_admin_user_iam_user.aws_iam_user.this[0]: Refreshing state... [id=cluster-admin-user]�[0m 2023-06-11T10:16:02.2382623Z �[0m�[1mmodule.eks_dev_iam_role.data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.2404465Z �[0m�[1mmodule.eks.module.kms.data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.2436009Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].data.aws_iam_policy_document.assume_role_policy[0]: Reading...�[0m�[0m 2023-06-11T10:16:02.2442937Z �[0m�[1mmodule.eks_admins_iam_group.data.aws_caller_identity.current[0]: Reading...�[0m�[0m 2023-06-11T10:16:02.2445225Z �[0m�[1mmodule.eks.data.aws_caller_identity.current: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.2472372Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].data.aws_iam_policy_document.assume_role_policy[0]: Read complete after 0s [id=2560088296]�[0m 2023-06-11T10:16:02.2485145Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].data.aws_iam_policy_document.assume_role_policy[0]: Reading...�[0m�[0m 2023-06-11T10:16:02.2512376Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].data.aws_iam_policy_document.assume_role_policy[0]: Read complete after 0s [id=2560088296]�[0m 2023-06-11T10:16:02.2590540Z �[0m�[1mmodule.eks.data.aws_iam_policy_document.assume_role_policy[0]: Reading...�[0m�[0m 2023-06-11T10:16:02.2611492Z �[0m�[1mmodule.eks.data.aws_iam_policy_document.assume_role_policy[0]: Read complete after 0s [id=2764486067]�[0m 2023-06-11T10:16:02.2648673Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_iam_policy_document.load_balancer_controller[0]: Reading...�[0m�[0m 2023-06-11T10:16:02.2669605Z �[0m�[1mmodule.eks_dev_iam_group.data.aws_iam_policy_document.iam_self_management: Reading...�[0m�[0m 2023-06-11T10:16:02.2679117Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_iam_role.this[0]: Refreshing state... [id=spot-eks-node-group-20230523061939512600000003]�[0m 2023-06-11T10:16:02.2754718Z �[0m�[1mmodule.eks_dev_iam_group.data.aws_iam_policy_document.iam_self_management: Read complete after 0s [id=3250444868]�[0m 2023-06-11T10:16:02.2776676Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_iam_role.this[0]: Refreshing state... [id=general-eks-node-group-20230523061939511000000001]�[0m 2023-06-11T10:16:02.2875330Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_iam_policy_document.load_balancer_controller[0]: Read complete after 0s [id=898716815]�[0m 2023-06-11T10:16:02.2929845Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.aws_iam_policy.load_balancer_controller[0]: Refreshing state... [id=arn:aws:iam::015921992120:policy/AmazonEKS_AWS_Load_Balancer_Controller-20230526184436105900000001]�[0m 2023-06-11T10:16:02.3216297Z �[0m�[1mmodule.eks_admins_iam_group.data.aws_caller_identity.current[0]: Read complete after 0s [id=015921992120]�[0m 2023-06-11T10:16:02.3239808Z �[0m�[1mmodule.eks_dev_iam_group.aws_iam_group_membership.this[0]: Refreshing state... [id=eks-dev]�[0m 2023-06-11T10:16:02.3668100Z �[0m�[1mmodule.eks_admins_iam_group.data.aws_iam_policy_document.iam_self_management: Reading...�[0m�[0m 2023-06-11T10:16:02.3719759Z �[0m�[1mmodule.eks_admins_iam_group.data.aws_iam_policy_document.iam_self_management: Read complete after 0s [id=3250444868]�[0m 2023-06-11T10:16:02.4092091Z �[0m�[1mmodule.eks_admins_iam_group.aws_iam_group_membership.this[0]: Refreshing state... [id=eks-admin]�[0m 2023-06-11T10:16:02.5641784Z �[0m�[1mmodule.eks.aws_iam_role.this[0]: Refreshing state... [id=cluster-corro-cluster-20230523061940040800000007]�[0m 2023-06-11T10:16:02.7665761Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"]: Refreshing state... [id=spot-eks-node-group-20230523061939512600000003-20230523061940243800000009]�[0m 2023-06-11T10:16:02.7723268Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"]: Refreshing state... [id=spot-eks-node-group-20230523061939512600000003-2023052306194042700000000d]�[0m 2023-06-11T10:16:02.7724596Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"]: Refreshing state... [id=general-eks-node-group-20230523061939511000000001-2023052306194028450000000a]�[0m 2023-06-11T10:16:02.7725863Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly"]: Refreshing state... [id=spot-eks-node-group-20230523061939512600000003-2023052306194033370000000c]�[0m 2023-06-11T10:16:02.7729344Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy"]: Refreshing state... [id=general-eks-node-group-20230523061939511000000001-20230523061940187600000008]�[0m 2023-06-11T10:16:02.7766679Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy"]: Refreshing state... [id=general-eks-node-group-20230523061939511000000001-2023052306194029730000000b]�[0m 2023-06-11T10:16:02.9501018Z �[0m�[1mmodule.eks.aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKSVPCResourceController"]: Refreshing state... [id=cluster-corro-cluster-20230523061940040800000007-2023052306194077000000000f]�[0m 2023-06-11T10:16:02.9544983Z �[0m�[1mmodule.eks.aws_iam_role_policy_attachment.this["arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"]: Refreshing state... [id=cluster-corro-cluster-20230523061940040800000007-2023052306194076890000000e]�[0m 2023-06-11T10:16:03.4316209Z �[0m�[1mmodule.vpc.aws_default_network_acl.this[0]: Refreshing state... [id=acl-079547a9241994213]�[0m 2023-06-11T10:16:03.4453825Z �[0m�[1mmodule.vpc.aws_default_security_group.this[0]: Refreshing state... [id=sg-06015fdebd967ecea]�[0m 2023-06-11T10:16:03.4457855Z �[0m�[1mmodule.vpc.aws_subnet.public[0]: Refreshing state... [id=subnet-031d5d6a820ec09c3]�[0m 2023-06-11T10:16:03.4462017Z �[0m�[1mmodule.eks_admins_iam_role.data.aws_iam_policy_document.assume_role[0]: Reading...�[0m�[0m 2023-06-11T10:16:03.4469717Z �[0m�[1mmodule.vpc.aws_route_table.public[0]: Refreshing state... [id=rtb-0de682bebbfde358b]�[0m 2023-06-11T10:16:03.4473458Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_security_group.this[0]: Refreshing state... [id=sg-0b3a2b91f4b88209f]�[0m 2023-06-11T10:16:03.4480360Z �[0m�[1mmodule.vpc.aws_default_route_table.default[0]: Refreshing state... [id=rtb-019d34c02c5fa8ee8]�[0m 2023-06-11T10:16:03.4522542Z �[0m�[1mmodule.eks.aws_security_group.cluster[0]: Refreshing state... [id=sg-04493a20d9e346e41]�[0m 2023-06-11T10:16:03.4533892Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_security_group.this[0]: Refreshing state... [id=sg-09bc1aa248202da86]�[0m 2023-06-11T10:16:03.4592198Z �[0m�[1mmodule.eks_admins_iam_role.data.aws_iam_policy_document.assume_role[0]: Read complete after 0s [id=1484993501]�[0m 2023-06-11T10:16:03.4621511Z �[0m�[1mmodule.vpc.aws_subnet.public[1]: Refreshing state... [id=subnet-0d64c4ccbba8f1428]�[0m 2023-06-11T10:16:03.4675854Z �[0m�[1mmodule.eks.aws_security_group.node[0]: Refreshing state... [id=sg-08af1a74b7cac1744]�[0m 2023-06-11T10:16:03.5765595Z �[0m�[1mmodule.eks_dev_iam_role.data.aws_iam_policy_document.assume_role[0]: Reading...�[0m�[0m 2023-06-11T10:16:03.5782902Z �[0m�[1mmodule.eks_dev_iam_role.data.aws_iam_policy_document.assume_role[0]: Read complete after 0s [id=1484993501]�[0m 2023-06-11T10:16:03.5834958Z �[0m�[1mmodule.vpc.aws_route_table.private[0]: Refreshing state... [id=rtb-08055e8907096d4f2]�[0m 2023-06-11T10:16:03.7024149Z �[0m�[1mmodule.vpc.aws_internet_gateway.this[0]: Refreshing state... [id=igw-017130444a25ad049]�[0m 2023-06-11T10:16:03.8119696Z �[0m�[1mmodule.vpc.aws_subnet.private[0]: Refreshing state... [id=subnet-004a6b4c6f995a096]�[0m 2023-06-11T10:16:03.8156476Z �[0m�[1mmodule.vpc.aws_subnet.private[1]: Refreshing state... [id=subnet-0b210cfb9c10e783a]�[0m 2023-06-11T10:16:03.8271740Z �[0m�[1mmodule.eks_admins_iam_role.aws_iam_role.this[0]: Refreshing state... [id=eks-admin]�[0m 2023-06-11T10:16:03.8415379Z �[0m�[1mmodule.eks_dev_iam_role.aws_iam_role.this[0]: Refreshing state... [id=eks-dev]�[0m 2023-06-11T10:16:03.8764134Z �[0m�[1mmodule.vpc.aws_route_table_association.public[1]: Refreshing state... [id=rtbassoc-0046e4d4120bd9bb9]�[0m 2023-06-11T10:16:03.8865529Z �[0m�[1mmodule.vpc.aws_route_table_association.public[0]: Refreshing state... [id=rtbassoc-03b2db1419a9fe54b]�[0m 2023-06-11T10:16:03.8873558Z �[0m�[1mmodule.vpc.aws_nat_gateway.this[0]: Refreshing state... [id=nat-0d02dcc3c80761b32]�[0m 2023-06-11T10:16:03.8975172Z �[0m�[1mmodule.vpc.aws_route.public_internet_gateway[0]: Refreshing state... [id=r-rtb-0de682bebbfde358b1080289494]�[0m 2023-06-11T10:16:03.9268449Z �[0m�[1mmodule.eks.aws_security_group_rule.node["egress_ntp_udp"]: Refreshing state... [id=sgrule-1132926442]�[0m 2023-06-11T10:16:03.9277580Z �[0m�[1mmodule.eks.aws_security_group_rule.node["ingress_cluster_kubelet"]: Refreshing state... [id=sgrule-3063508007]�[0m 2023-06-11T10:16:03.9740965Z �[0m�[1mmodule.eks.aws_security_group_rule.node["egress_self_coredns_udp"]: Refreshing state... [id=sgrule-539550602]�[0m 2023-06-11T10:16:03.9777606Z �[0m�[1mmodule.eks.aws_security_group_rule.node["ingress_cluster_443"]: Refreshing state... [id=sgrule-2231412979]�[0m 2023-06-11T10:16:04.0068936Z �[0m�[1mmodule.eks.aws_security_group_rule.node["ingress_self_coredns_tcp"]: Refreshing state... [id=sgrule-3611822281]�[0m 2023-06-11T10:16:04.0124183Z �[0m�[1mmodule.eks.aws_security_group_rule.node["ingress_allow_access_from_control_plane"]: Refreshing state... [id=sgrule-2752858694]�[0m 2023-06-11T10:16:04.0199406Z �[0m�[1mmodule.eks.aws_security_group_rule.node["egress_cluster_443"]: Refreshing state... [id=sgrule-3446098879]�[0m 2023-06-11T10:16:04.0237690Z �[0m�[1mmodule.eks.aws_security_group_rule.node["egress_https"]: Refreshing state... [id=sgrule-3804696057]�[0m 2023-06-11T10:16:04.1342601Z �[0m�[1mmodule.eks.aws_security_group_rule.node["egress_ntp_tcp"]: Refreshing state... [id=sgrule-1025061095]�[0m 2023-06-11T10:16:04.1706799Z �[0m�[1mmodule.eks.aws_security_group_rule.node["ingress_self_coredns_udp"]: Refreshing state... [id=sgrule-1930930982]�[0m 2023-06-11T10:16:04.1776667Z �[0m�[1mmodule.eks.aws_security_group_rule.node["egress_self_coredns_tcp"]: Refreshing state... [id=sgrule-2924437996]�[0m 2023-06-11T10:16:04.1785643Z �[0m�[1mmodule.eks.aws_security_group_rule.cluster["ingress_nodes_443"]: Refreshing state... [id=sgrule-966434464]�[0m 2023-06-11T10:16:04.2048856Z �[0m�[1mmodule.eks.aws_security_group_rule.cluster["egress_nodes_443"]: Refreshing state... [id=sgrule-1924670702]�[0m 2023-06-11T10:16:04.2166021Z �[0m�[1mmodule.eks.aws_security_group_rule.cluster["egress_nodes_kubelet"]: Refreshing state... [id=sgrule-1273194252]�[0m 2023-06-11T10:16:04.2344626Z �[0m�[1mmodule.vpc.aws_route_table_association.private[1]: Refreshing state... [id=rtbassoc-07689d3e51c5afd64]�[0m 2023-06-11T10:16:04.2492976Z �[0m�[1mmodule.vpc.aws_route_table_association.private[0]: Refreshing state... [id=rtbassoc-006f99ec4c1f3d771]�[0m 2023-06-11T10:16:04.2563016Z �[0m�[1mmodule.vpc.aws_route.private_nat_gateway[0]: Refreshing state... [id=r-rtb-08055e8907096d4f21080289494]�[0m 2023-06-11T10:16:04.2619161Z �[0m�[1mmodule.eks_admins_iam_role.aws_iam_role_policy_attachment.custom[0]: Refreshing state... [id=eks-admin-20230525072140696700000001]�[0m 2023-06-11T10:16:04.3453885Z �[0m�[1mmodule.eks_dev_iam_role.aws_iam_role_policy_attachment.custom[0]: Refreshing state... [id=eks-dev-20230525043544179800000001]�[0m 2023-06-11T10:16:04.3612810Z �[0m�[1mmodule.allow_assume_eks_admins_iam_policy.aws_iam_policy.policy[0]: Refreshing state... [id=arn:aws:iam::015921992120:policy/allow-assume-eks-admin-iam-role]�[0m 2023-06-11T10:16:04.3652867Z �[0m�[1mmodule.allow_assume_eks_dev_iam_policy.aws_iam_policy.policy[0]: Refreshing state... [id=arn:aws:iam::015921992120:policy/allow-assume-eks-dev-iam-role]�[0m 2023-06-11T10:16:04.4469021Z �[0m�[1mmodule.eks.aws_eks_cluster.this[0]: Refreshing state... [id=cluster-corro]�[0m 2023-06-11T10:16:04.5641643Z �[0m�[1mmodule.eks_admins_iam_group.aws_iam_group_policy_attachment.custom_arns[0]: Refreshing state... [id=eks-admin-20230525072141050600000002]�[0m 2023-06-11T10:16:04.5721599Z �[0m�[1mmodule.eks_dev_iam_group.aws_iam_group_policy_attachment.custom_arns[0]: Refreshing state... [id=eks-dev-20230525043544381800000003]�[0m 2023-06-11T10:16:04.9354981Z �[0m�[1mmodule.eks.aws_ec2_tag.cluster_primary_security_group["Environment"]: Refreshing state... [id=sg-0d206fc1539778373,Environment]�[0m 2023-06-11T10:16:04.9358010Z �[0m�[1mmodule.eks.data.tls_certificate.this[0]: Reading...�[0m�[0m 2023-06-11T10:16:04.9388522Z �[0m�[1mdata.aws_eks_cluster.default: Reading...�[0m�[0m 2023-06-11T10:16:04.9421046Z �[0m�[1mdata.aws_eks_cluster_auth.default: Reading...�[0m�[0m 2023-06-11T10:16:04.9426538Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_iam_policy_document.cluster_autoscaler[0]: Reading...�[0m�[0m 2023-06-11T10:16:04.9451546Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_iam_policy_document.cluster_autoscaler[0]: Read complete after 0s [id=3924081046]�[0m 2023-06-11T10:16:04.9478076Z �[0m�[1mdata.aws_eks_cluster_auth.default: Read complete after 0s [id=cluster-corro]�[0m 2023-06-11T10:16:04.9507538Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_launch_template.this[0]: Refreshing state... [id=lt-03bea41a48946ccff]�[0m 2023-06-11T10:16:04.9517987Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_launch_template.this[0]: Refreshing state... [id=lt-0f00f99f84ec35996]�[0m 2023-06-11T10:16:04.9542765Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.aws_iam_policy.cluster_autoscaler[0]: Refreshing state... [id=arn:aws:iam::015921992120:policy/AmazonEKS_Cluster_Autoscaler_Policy-20230530093716046100000001]�[0m 2023-06-11T10:16:05.1434700Z �[0m�[1mdata.aws_eks_cluster.default: Read complete after 0s [id=cluster-corro]�[0m 2023-06-11T10:16:05.2759834Z �[0m�[1mmodule.eks.data.tls_certificate.this[0]: Read complete after 0s [id=7c72bb110518075cbb071e57d125fc3aa17238d9]�[0m 2023-06-11T10:16:05.5740742Z �[0m�[1mmodule.eks.aws_iam_openid_connect_provider.oidc_provider[0]: Refreshing state... [id=arn:aws:iam::015921992120:oidc-provider/oidc.eks.***.amazonaws.com/id/25E8623403867E44DE6514ACA37E6193]�[0m 2023-06-11T10:16:05.5869404Z �[0m�[1mkubectl_manifest.role: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/namespaces/kube-system/roles/cluster-autoscaler]�[0m 2023-06-11T10:16:05.5874687Z �[0m�[1mkubectl_manifest.deployment: Refreshing state... [id=/apis/apps/v1/namespaces/kube-system/deployments/cluster-autoscaler]�[0m 2023-06-11T10:16:05.5881050Z �[0m�[1mkubectl_manifest.service_account: Refreshing state... [id=/api/v1/namespaces/kube-system/serviceaccounts/cluster-autoscaler]�[0m 2023-06-11T10:16:05.5887335Z �[0m�[1mkubectl_manifest.cluster_role_binding: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/cluster-autoscaler]�[0m 2023-06-11T10:16:05.5892025Z �[0m�[1mkubectl_manifest.role_binding: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/namespaces/kube-system/rolebindings/cluster-autoscaler]�[0m 2023-06-11T10:16:05.5899367Z �[0m�[1mkubectl_manifest.cluster_role: Refreshing state... [id=/apis/rbac.authorization.k8s.io/v1/clusterroles/cluster-autoscaler]�[0m 2023-06-11T10:16:05.5918355Z �[0m�[1mmodule.eks.module.eks_managed_node_group["general"].aws_eks_node_group.this[0]: Refreshing state... [id=cluster-corro:general-20230523062931439900000016]�[0m 2023-06-11T10:16:05.5936645Z �[0m�[1mmodule.eks.module.eks_managed_node_group["spot"].aws_eks_node_group.this[0]: Refreshing state... [id=cluster-corro:spot-20230523062931438400000014]�[0m 2023-06-11T10:16:05.6886006Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_iam_policy_document.this[0]: Reading...�[0m�[0m 2023-06-11T10:16:05.6912541Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.data.aws_iam_policy_document.this[0]: Read complete after 0s [id=914351167]�[0m 2023-06-11T10:16:05.6947321Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.aws_iam_role.this[0]: Refreshing state... [id=aws-load-balancer-controller]�[0m 2023-06-11T10:16:05.6976115Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_iam_policy_document.this[0]: Reading...�[0m�[0m 2023-06-11T10:16:05.6999514Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.data.aws_iam_policy_document.this[0]: Read complete after 0s [id=2908860525]�[0m 2023-06-11T10:16:05.7026404Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.aws_iam_role.this[0]: Refreshing state... [id=cluster-autoscaler]�[0m 2023-06-11T10:16:05.8260653Z �[0m�[1mmodule.eks.kubernetes_config_map_v1_data.aws_auth[0]: Refreshing state... [id=kube-system/aws-auth]�[0m 2023-06-11T10:16:06.0075479Z �[0m�[1mmodule.aws_load_balancer_controller_irsa_role.aws_iam_role_policy_attachment.load_balancer_controller[0]: Refreshing state... [id=aws-load-balancer-controller-20230526184436593800000002]�[0m 2023-06-11T10:16:06.0100350Z �[0m�[1mhelm_release.aws_load_balancer_controller: Refreshing state... [id=aws-load-balancer-controller]�[0m 2023-06-11T10:16:06.0274730Z �[0m�[1mmodule.cluster_autoscaler_irsa_role.aws_iam_role_policy_attachment.cluster_autoscaler[0]: Refreshing state... [id=cluster-autoscaler-20230530093716648700000002]�[0m 2023-06-11T10:16:11.5470580Z 2023-06-11T10:16:11.5471841Z �[0m�[1m�[31mPlanning failed.�[0m�[1m Terraform encountered an error while generating this plan.�[0m 2023-06-11T10:16:11.5472222Z 2023-06-11T10:16:11.5473696Z �[0m�[31m╷�[0m�[0m 2023-06-11T10:16:11.5474757Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mfailed to create kubernetes rest client for read of resource: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api?timeout=32s": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5475493Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5475855Z �[31m│�[0m �[0m�[0m 2023-06-11T10:16:11.5476225Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5491455Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5492044Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mInvalid configuration for API client�[0m 2023-06-11T10:16:11.5492452Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5492919Z �[31m│�[0m �[0m�[0m with kubernetes_manifest.service_account, 2023-06-11T10:16:11.5493622Z �[31m│�[0m �[0m on autoscaler-manifest.tf line 13, in resource "kubernetes_manifest" "service_account": 2023-06-11T10:16:11.5497644Z �[31m│�[0m �[0m 13: resource "kubernetes_manifest" "service_account" �[4m{�[0m�[0m 2023-06-11T10:16:11.5498199Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5498688Z �[31m│�[0m �[0mGet 2023-06-11T10:16:11.5502070Z �[31m│�[0m �[0m"https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/apis": 2023-06-11T10:16:11.5502615Z �[31m│�[0m �[0mgetting credentials: exec: executable aws failed with exit code 255 2023-06-11T10:16:11.5511644Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5513486Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5514431Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mfailed to create kubernetes rest client for read of resource: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api?timeout=32s": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5515026Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5515459Z �[31m│�[0m �[0m�[0m with kubectl_manifest.role, 2023-06-11T10:16:11.5516004Z �[31m│�[0m �[0m on autoscaler-manifest.tf line 29, in resource "kubectl_manifest" "role": 2023-06-11T10:16:11.5516590Z �[31m│�[0m �[0m 29: resource "kubectl_manifest" "role" �[4m{�[0m�[0m 2023-06-11T10:16:11.5517037Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5517384Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5534865Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5535896Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mfailed to create kubernetes rest client for read of resource: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api?timeout=32s": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5536881Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5537386Z �[31m│�[0m �[0m�[0m with kubectl_manifest.role_binding, 2023-06-11T10:16:11.5537951Z �[31m│�[0m �[0m on autoscaler-manifest.tf line 50, in resource "kubectl_manifest" "role_binding": 2023-06-11T10:16:11.5538608Z �[31m│�[0m �[0m 50: resource "kubectl_manifest" "role_binding" �[4m{�[0m�[0m 2023-06-11T10:16:11.5539162Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5539515Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5559246Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5560283Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mfailed to create kubernetes rest client for read of resource: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api?timeout=32s": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5561146Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5561513Z �[31m│�[0m �[0m�[0m with kubectl_manifest.cluster_role, 2023-06-11T10:16:11.5562007Z �[31m│�[0m �[0m on autoscaler-manifest.tf line 71, in resource "kubectl_manifest" "cluster_role": 2023-06-11T10:16:11.5562449Z �[31m│�[0m �[0m 71: resource "kubectl_manifest" "cluster_role" �[4m{�[0m�[0m 2023-06-11T10:16:11.5562776Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5563056Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5581028Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5582000Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mfailed to create kubernetes rest client for read of resource: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api?timeout=32s": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5582508Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5582888Z �[31m│�[0m �[0m�[0m with kubectl_manifest.cluster_role_binding, 2023-06-11T10:16:11.5583377Z �[31m│�[0m �[0m on autoscaler-manifest.tf line 131, in resource "kubectl_manifest" "cluster_role_binding": 2023-06-11T10:16:11.5583859Z �[31m│�[0m �[0m 131: resource "kubectl_manifest" "cluster_role_binding" �[4m{�[0m�[0m 2023-06-11T10:16:11.5584190Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5584453Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5605697Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5606561Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mfailed to create kubernetes rest client for read of resource: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api?timeout=32s": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5607098Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5607455Z �[31m│�[0m �[0m�[0m with kubectl_manifest.deployment, 2023-06-11T10:16:11.5607899Z �[31m│�[0m �[0m on autoscaler-manifest.tf line 151, in resource "kubectl_manifest" "deployment": 2023-06-11T10:16:11.5609331Z �[31m│�[0m �[0m 151: resource "kubectl_manifest" "deployment" �[4m{�[0m�[0m 2023-06-11T10:16:11.5609682Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5609964Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5610300Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5610992Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mKubernetes cluster unreachable: Get "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/version": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5611466Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5611840Z �[31m│�[0m �[0m�[0m with helm_release.aws_load_balancer_controller, 2023-06-11T10:16:11.5612330Z �[31m│�[0m �[0m on helm-load-balancer-controller.tf line 17, in resource "helm_release" "aws_load_balancer_controller": 2023-06-11T10:16:11.5612855Z �[31m│�[0m �[0m 17: resource "helm_release" "aws_load_balancer_controller" �[4m{�[0m�[0m 2023-06-11T10:16:11.5613196Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5613456Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5661649Z �[31m╷�[0m�[0m 2023-06-11T10:16:11.5662464Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mGet "https://25E8623403867E44DE6514ACA37E6193.gr7.***.eks.amazonaws.com/api/v1/namespaces/kube-system/configmaps/aws-auth": getting credentials: exec: executable aws failed with exit code 255�[0m 2023-06-11T10:16:11.5673896Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5674627Z �[31m│�[0m �[0m�[0m with module.eks.kubernetes_config_map_v1_data.aws_auth[0], 2023-06-11T10:16:11.5675245Z �[31m│�[0m �[0m on .terraform/modules/eks/main.tf line 470, in resource "kubernetes_config_map_v1_data" "aws_auth": 2023-06-11T10:16:11.5675906Z �[31m│�[0m �[0m 470: resource "kubernetes_config_map_v1_data" "aws_auth" �[4m{�[0m�[0m 2023-06-11T10:16:11.5676328Z �[31m│�[0m �[0m 2023-06-11T10:16:11.5676740Z �[31m╵�[0m�[0m 2023-06-11T10:16:11.5876982Z ##[warning]Can't find loc string for key: TerraformPlanFailed 2023-06-11T10:16:11.5885070Z ##[error]Error: TerraformPlanFailed 1 2023-06-11T10:16:11.5887443Z ##[section]Finishing: Terraform : plan
The problem probably lies within this provider. The EKS module needs to authenticate this provider to gain access to the 'aws-auth' config map. (https://github.com/antonputra/tutorials/blob/main/lessons/125/terraform/5-autoscaler-manifest.tf#L1-L11)
provider "kubectl" {
host = data.aws_eks_cluster.default.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.default.certificate_authority[0].data)
load_config_file = false
exec {
api_version = "client.authentication.k8s.io/v1beta1"
args = ["eks", "get-token", "--cluster-name", data.aws_eks_cluster.default.id]
command = "aws"
}
}
Try to use different authentication method based on token - https://github.com/antonputra/tutorials/blob/main/lessons/160/git-infrastructure-live/dev/kubernetes-addons/terragrunt.hcl#L47-L50
after adding the token, it worked thanks and keep up the good work.