-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error "value of 'count' cannot be computed" #10
Comments
It's something with
becasue
|
The problem is with this line: terraform-aws-notify-slack/iam.tf Line 31 in efac652
because when I set the count to fixed 0 or 1 (and use this module as sources) like
Everything works Related issue: hashicorp/terraform#17421 |
@xliiv sorry for the delay in my response. Yes, HCL2 will have it fixed. Meanwhile, you have to specify key using any of available options (static var, data-source, or pass from tfvars, or from CLI). Everything will work except computed values ( There is not much this module can do about it to keep in an easy-maintainable condition. |
Does this mean that example doesn't work? |
You are right, it does not work as it is now in that example. My bad. I will make a PR now which will fix this. |
v1.9.0 has been released. I've updated examples there. Thanks a lot for opening this issue! |
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. |
So I'm mostly copied the code from cloudwatch-alerts-to-slack example.
And I'm getting error:
Here's the copied code:
Am I missing something?
The text was updated successfully, but these errors were encountered: