-
-
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
Invalid template interpolation value; The expression result is null. #1970
Comments
Could you please share your complete configuration |
@bryantbiggs sure
|
unless there are any other configs missing, I don't see any errors. you can see our use of terraform-aws-eks/examples/complete/main.tf Line 326 in 4898bf3
|
Then why would it work when I flatten the node groups Would love to have that cleared up. Thanks. |
I don't know - I cannot reproduce your setup with the configuration provided to provide any further info |
@mijndert can you provide a deployable configuration to reproduce (I can't guess at what values you are using with the repro provided)? |
I have two node groups and want use the create property to create them conditionally. I bump into the same error when for any of the node groups Hijacking @mijndert 's code: eks_managed_node_groups = {
general = {
create = false
name = "eks-general-${random_string.suffix.result}"
ami_type = "AL2_x86_64"
ami_id = var.general_ami
min_size = var.min_capacity_general
max_size = var.max_capacity_general
desired_size = var.desired_capacity_general
instance_types = [var.instance_type_general]
capacity_type = "ON_DEMAND"
labels = {
Environment = var.environment
}
}
localstorage = {
create = false
name = "eks-local-storage-${random_string.suffix.result}"
ami_type = "AL2_ARM_64"
ami_id = var.localstorage_ami
min_size = var.min_capacity_local_storage
max_size = var.max_capacity_local_storage
desired_size = var.desired_capacity_local_storage
instance_types = [var.instance_type_local_storage]
capacity_type = "ON_DEMAND"
labels = {
Environment = var.environment
}
} |
thank you @marpada for that reproduction, that was very helpful and a fix is coming |
This issue has been resolved in version 18.20.3 🎉 |
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
Versions
Terraform v1.1.7
on darwin_amd64
Module: 18.15.0
Reproduction
Steps to reproduce the behavior: terraform plan
Not using workspaces, cleared local cache.
Code Snippet to Reproduce
Expected behavior
I expect my
terraform plan
to go through.Actual behavior
Terminal Output Screenshot(s)
See output above
Additional context
I have 'fixed' the issue by adding
flatten
to the code.The text was updated successfully, but these errors were encountered: