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
╷
│ Error: Invalid function argument
│
│ on .terraform/modules/aws_security_group/normalize.tf line 15, in locals:
│ 15: key = coalesce(lookup(rule, "key", null), "${k}[${i}]")
│
│ Invalid value for "inputMap" parameter: lookup() requires a map as the
│ first argument.
╵
Environment (please complete the following information):
IMHO this is not a bug. Parameter is named additional_security_group_rules which means you have to put there list of security group rules not list of CIDRs.
Works as designed (and expected).
Describe the Bug
Giving a list as a value to the additional_security_group_rules parameter causes a fail.
Expected Behavior
It should accept a list and the module should run smoothly.
Steps to Reproduce
Steps to reproduce the behavior:
Error log
Environment (please complete the following information):
Solution
Give the parameter as a list of objects, such as:
The text was updated successfully, but these errors were encountered: