Skip to content

Commit 0e71e82

Browse files
fix: Skip limits_per_label_set dynamic block when set to null (#28)
Co-authored-by: Bryant Biggs <[email protected]>
1 parent 5952bb7 commit 0e71e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ resource "aws_prometheus_workspace_configuration" "this" {
3838
workspace_id = local.workspace_id
3939

4040
dynamic "limits_per_label_set" {
41-
for_each = var.limits_per_label_set
41+
for_each = var.limits_per_label_set != null ? var.limits_per_label_set : []
4242

4343
content {
4444
label_set = limits_per_label_set.value.label_set

0 commit comments

Comments
 (0)