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
The field "cache_behavior" which is documented as optional is actually required. If omitted the following error occurs:
Error: Iteration over null value
on .terraform/modules//main.tf line 94, in resource "aws_cloudfront_distribution" "this":
94: for_each = [for k, v in var.cache_behavior : v if k == "default"]
|----------------
| var.cache_behavior is null
A null value cannot be used as the collection in a 'for' expression.
Error: Iteration over null value
on .terraform/modules//main.tf line 137, in resource "aws_cloudfront_distribution" "this":
137: for_each = [for k, v in var.cache_behavior : v if k != "default"]
|----------------
| var.cache_behavior is null
A null value cannot be used as the collection in a 'for' expression.
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.
The field "cache_behavior" which is documented as optional is actually required. If omitted the following error occurs:
Error: Iteration over null value
on .terraform/modules//main.tf line 94, in resource "aws_cloudfront_distribution" "this":
94: for_each = [for k, v in var.cache_behavior : v if k == "default"]
|----------------
| var.cache_behavior is null
A null value cannot be used as the collection in a 'for' expression.
Error: Iteration over null value
on .terraform/modules//main.tf line 137, in resource "aws_cloudfront_distribution" "this":
137: for_each = [for k, v in var.cache_behavior : v if k != "default"]
|----------------
| var.cache_behavior is null
A null value cannot be used as the collection in a 'for' expression.
The text was updated successfully, but these errors were encountered: