mumoshu / terraform-provider-eksctl

Manage AWS EKS clusters using Terraform and eksctl
Apache License 2.0
234 stars 44 forks source link

Provider doesn't track remote aws-auth configmap changes #46

Open cilindrox opened 3 years ago

cilindrox commented 3 years ago

the readme states:

On each terraform apply, the provider compares the current aws-auth configmap against the desired configmap contents, and run eksctl create iamidentitymapping to create additional mappings and eksctl delete iamidentitymapping to delete redundant mappings.

I've noticed this doesn't track any remote CM modifications and leads to drift without ever modifying TF's state. eg:

  1. terraform apply a cluster config using this module.
  2. modify aws-auth on the cluster via kubectl
  3. terraform plan - modifications to the remote aws-auth cm aren't noticed, and no changes to apply are reported by this provider.