We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dba3421 commit 90f2f7eCopy full SHA for 90f2f7e
1 file changed
main.tf
@@ -85,7 +85,7 @@ resource "aws_cloudfront_distribution" "cdn" {
85
cached_methods = ["GET", "HEAD"]
86
87
dynamic "function_association" {
88
- for_each = var.function_association
+ for_each = coalesce(var.function_association, [])
89
90
content {
91
event_type = function_association.value.event_type
0 commit comments