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
Additional rule to be added to the created cluster security group.
Actual behavior
Error: Inconsistent conditional result types
│
│ on .terraform/modules/eks/main.tf line 122, in resource "aws_security_group_rule" "cluster":
│ 122: for_each = local.create_cluster_sg ? merge(local.cluster_security_group_rules, var.cluster_security_group_additional_rules) : {}
│ ├────────────────
│ │ local.cluster_security_group_rules is object with 3 attributes
│ │ local.create_cluster_sg is true
│ │ var.cluster_security_group_additional_rules is map of object with 1 element
│
│ The true and false result expressions must have consistent types. The given expressions are object and object, respectively.
╵
Terminal Output Screenshot(s)
Additional context
local.cluster_security_group_rules should probably be a map instead of an object.
The text was updated successfully, but these errors were encountered:
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
Attempting to specify
cluster_security_group_additional_rules
results in a "Inconsistent conditional result types" error from Terraform.Versions
Reproduction
Steps to reproduce the behavior:
Add
cluster_security_group_additional_rules
input to module. Runterraform plan
.Code Snippet to Reproduce
Expected behavior
Additional rule to be added to the created cluster security group.
Actual behavior
Terminal Output Screenshot(s)
Additional context
local.cluster_security_group_rules
should probably be a map instead of an object.The text was updated successfully, but these errors were encountered: