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: Error in function call
│
│ on .terraform/modules/braze_webhook_lambda/iam.tf line 15, in locals:
│ 15: policy_name = coalesce(var.policy_name, local.role_name)
│ ├────────────────
│ │ local.role_name is null
│ │ var.policy_name is null
│
│ Call to function "coalesce" failed: no non-null, non-empty-string
│ arguments.
This is because we don't expect module to create the role and thus don't pass role_name or policy_name and both of them are null which coalesce is complaining about.
Versions
Module version [Required]:
Terraform version:
Terraform v1.2.8
on darwin_amd64
yes
yes
running terraform apply with latest module and reproducible code should reproduce the issue.
Expected behavior
Expected to set policy_name to null when create_role is false.
Actual behavior
Applying the module errors out with
╷
│ Error: Error in function call
│
│ on .terraform/modules/braze_webhook_lambda/iam.tf line 15, in locals:
│ 15: policy_name = coalesce(var.policy_name, local.role_name)
│ ├────────────────
│ │ local.role_name is null
│ │ var.policy_name is null
│
│ Call to function "coalesce" failed: no non-null, non-empty-string
│ arguments.
Terminal Output Screenshot(s)
Additional context
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
Hi Team,
The change merged today 7df6bbf seems to break lambda creation when the IAM role is not getting created via module. We do pass
and getting error
This is because we don't expect module to create the role and thus don't pass
role_name
orpolicy_name
and both of them arenull
whichcoalesce
is complaining about.Versions
Module version [Required]:
Terraform version:
Terraform v1.2.8
on darwin_amd64
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
yes yes running terraform apply with latest module and reproducible code should reproduce the issue.Expected behavior
Expected to set policy_name to null when
create_role
is false.Actual behavior
Applying the module errors out with
Terminal Output Screenshot(s)
Additional context
The text was updated successfully, but these errors were encountered: