Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/valkey/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ resource "google_memorystore_instance" "valkey_cluster" {
dynamic "gcs_source" {
for_each = var.gcs_source != null ? ["gcs_source"] : []
content {
uris = var.gcs_source
uris = split(",", var.gcs_source)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a list is expected as input, it would be better to change gcs_source to a list type.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do, but as a note - that goes kinda against the way lists are handled elsewhere in google terraform modules, for example node_locations comma separated list in https://github.com/terraform-google-modules/terraform-google-kubernetes-engine (right in the root readme).

I actually do prefer using a proper list by the way, just wanted to double check with you.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It escapes me why we did it that way for node_locations (maybe because node_pools were untyped) but I am leaning towards list for this case. @imrannayer @q2w any thoughts?

}
}

Expand Down