Is it possible to have a terraform list of ids (as string), like so:
locals {
secrets = [
"cloud.secret.id1",
"cloud.secret.id2",
"cloud.secret.id3",
]
}
and create dynamically data for all those ids,
data "google_secret_manager_secret_version" "basic" {
for_each = toset(locals.secrets)
secret = each.key
}
and then find a way to access a property inside each of those resources in the array again?