Skip to content

terraform AWS EKS 'destroy' failed module.eks.kubernetes_config_map.aws_auth[0] Error: Unauthorized #1661

@alex-beyond-minds

Description

@alex-beyond-minds

Description

at terraform destroy execution it's failing on module.eks.kubernetes_config_map.aws_auth[0]
with error:
Error: Unauthorized

Versions

  • Terraform: 1.0.9
  • Provider(s): kubernetes 2.6.1
  • Module: EKS 17.22.0

Reproduction

Steps to reproduce the behavior:
Are you using workspaces?: yes
Have you cleared the local cache (see Notice section above)?: yes
List steps in order that led up to the issue you encountered:
create AWS EKS cluster with custom users, run terraform destroy.

Code Snippet to Reproduce

module "eks" {
version = "17.22.0"
source = "terraform-aws-modules/eks/aws"
cluster_name = var.cluster_name
cluster_version = "1.21"
.
.
.
map_roles = var.map_roles
map_users = var.map_users
}

Expected behavior

Destroy removes EKS cluster

Actual behavior

Destroy is failing on deleting aws_auth configmap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions