terraform-aws-eks
terraform-aws-eks copied to clipboard
ConfigMap "aws-auth": Unauthorized
Description
When setting up a new cluster using the eks auth module with manage_aws_auth_configmap = true , I get the following error message.
Error: Have got the following error while validating the existence of the ConfigMap "aws-auth": Unauthorized
with module.auth-config.kubernetes_config_map_v1_data.aws_auth[0]
on .terraform/modules/auth-config/modules/aws-auth/main.tf line 31, in resource "kubernetes_config_map_v1_data" "aws_auth":
resource "kubernetes_config_map_v1_data" "aws_auth" {
- [ X] β I have searched the open/closed issues and my issue is not listed.
β οΈ Note
Versions
-
Module version [Required]:
v20.8.5 -
Terraform version: 1.7.5
-
Provider version(s): 5.58.0
Reproduction Code [Required]
module "eks" {
source = "terraform-aws-modules/eks/aws//modules/aws-auth"
version = "~> 20.0"
manage_aws_auth_configmap = true
aws_auth_roles = [
{
rolearn = "xxxxx"
username = "role1"
groups = ["system:masters"]
},
]
}
Steps to reproduce the behavior:
- Create a simple eks cluster managed node group from the example.
- Add the auth module
- Terraform Apply
Expected Result
- Auth Config Map created
Note: I am using Terraform Cloud.