Unexpected behavior when utilizing create_eks = false
for worker_groups module
#6
Labels
bug
Something isn't working
create_eks = false
for worker_groups module
#6
Describe the bug
Im utilizing the worker_groups module independently of the
control_plane
module and when doing some testing of the module when settingcreate_eks
to false I am receiving the following error.In my current setup the resources already exist for the cluster and this is part of a teardown test but I suspect this would occur without resources in place as the data lookup will attempt to happen regardless of the state of the
create_eks
flag.To Reproduce
Steps to reproduce the behavior:
create_eks
set totrue
create_eks
is set tofalse
Expected behavior
I would expect the module to be able to properly handle the setting of
create_eks
to false without generating an error.Additional context
While not a direct solution this scenario is mentioned explicitly in the original upstream documentation here: https://github.com/terraform-aws-modules/terraform-aws-eks#conditional-creation
and I assume because the data block in question resides inside the module a similar construct would need to be put in place.
It also looks like the
aws_auth
module is suffering from the same.The text was updated successfully, but these errors were encountered: