fix issue with concat'ing objects

This commit is contained in:
Ryan Heywood 2025-04-02 17:28:45 -04:00
parent 016dc52f8e
commit 6f75bb991e
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 4 additions and 1 deletions

View File

@ -125,7 +125,10 @@ locals {
# `jq .database_users.value.forgejo | sops --encrypt` # `jq .database_users.value.forgejo | sops --encrypt`
output "database_users" { output "database_users" {
value = { value = {
for db_user in concat(module.digitalocean_database_cluster.database_users, module.digitalocean_mysql_database_cluster.database_users): for db_user in concat(
values(module.digitalocean_database_cluster.database_users),
values(module.digitalocean_mysql_database_cluster.database_users),
):
db_user.name => { db_user.name => {
apiVersion = "v1", apiVersion = "v1",
kind = "Secret", kind = "Secret",