You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a regression of a very old issue #798 where if cluster_security_group_id is not specified and creation is disabled, the EKS module will try and replace the cluster every time.
Technically, the EKS module documentation does indicate cluster_security_group_id is a required parameter if create_cluster_security_group is set to false, however it is an optional parameter in the dependent aws_eks_cluster module and it should not be required since EKS creates a baseline cluster security group on cluster creation no matter what.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
There seems to be a regression of a very old issue #798 where if
cluster_security_group_id
is not specified and creation is disabled, the EKS module will try and replace the cluster every time.Technically, the EKS module documentation does indicate
cluster_security_group_id
is a required parameter ifcreate_cluster_security_group
is set tofalse
, however it is an optional parameter in the dependentaws_eks_cluster
module and it should not be required since EKS creates a baseline cluster security group on cluster creation no matter what.I think this should be as simple as wrapping this line in
compact()
--https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/main.tf#L16 to restore the previous behavior of removing any empty string values
Versions
Reproduction
Steps to reproduce the behavior:
Code Snippet to Reproduce
Expected behavior
Modules should not detect any changes
Actual behavior
Module thinks something has changed and tries to destroy
The text was updated successfully, but these errors were encountered: