-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing conditional for datasource #1632
Comments
@daroga0002 I assume that this issue is only impacting where I saw this behaviour yesterday and assumed that it wasn't an issue as it was previously working, but one reviewing again today I can see the issue. Off the top of my head a fix would be to set Furthermore should the module be able to create MNGs if |
yes only case where we have
Node groups are not created when we have
|
@daroga0002 I'm aware of the trick to block their creation, but they could be created if that was changed and the input variables required could be passed in. The question was more if they "should" be able to be created? RE a fix, do you have a preferred solution? The code I added above won't work as |
PR is created, var.cluster_name is just optional because to cover situation when you have In general this is some legacy when modules where not supporting count in terraform so then was created this trigger. As of now probably the best should be just removing this but this will be huge breaking change. |
Thanks for the fix. RE empty |
in general I tried to use it in development and changing |
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
#1580 introduces bug which occurs when
var.create_eks
is setup for false. This is becauseterraform-aws-eks/modules/node_groups/locals.tf
Lines 1 to 3 in f198efd
create_eks
is optional).In node group we are doing this by
if
terraform-aws-eks/modules/node_groups/locals.tf
Line 43 in f198efd
We need add to data source something like:
terraform-aws-eks/modules/fargate/main.tf
Line 13 in f198efd
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
any versions of tf and aws provider
Reproduction
run
examples/complete
Expected behavior
It should not throw error
Actual behavior
The text was updated successfully, but these errors were encountered: