Skip to content

Commit

Permalink
move postgresql_flexible_server_values block to better location in va…
Browse files Browse the repository at this point in the history
…riables.tf
  • Loading branch information
Sebastian Wolschke committed May 21, 2024
1 parent ee0b4ac commit 4f01927
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ locals {
mysql_flexible_server => merge(local.default.mysql_flexible_server, var.mysql_flexible_server[mysql_flexible_server])
}

/**
compare and merge custom and default values
*/
postgresql_flexible_server_values = {
for postgresql_flexible_server in keys(var.postgresql_flexible_server) :
postgresql_flexible_server => merge(local.default.postgresql_flexible_server, var.postgresql_flexible_server[postgresql_flexible_server])
}

/**
deep merge of all custom and default values
*/
Expand Down Expand Up @@ -178,14 +186,6 @@ locals {
mysql_flexible_server_firewall_rule => merge(local.default.mysql_flexible_server_firewall_rule, var.mysql_flexible_server_firewall_rule[mysql_flexible_server_firewall_rule])
}

/**
compare and merge custom and default values
*/
postgresql_flexible_server_values = {
for postgresql_flexible_server in keys(var.postgresql_flexible_server) :
postgresql_flexible_server => merge(local.default.postgresql_flexible_server, var.postgresql_flexible_server[postgresql_flexible_server])
}

/**
deep merge of all custom and default values
*/
Expand Down

0 comments on commit 4f01927

Please sign in to comment.