Skip to content

Commit

Permalink
try with index
Browse files Browse the repository at this point in the history
  • Loading branch information
theoskolnik committed Mar 28, 2024
1 parent 8c9970c commit a5765c4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,22 @@ locals {
network_public_subnets = var.deploy_vpc ? module.networking[0].network_public_subnets : var.network_public_subnets
network_private_subnet_cidrs = var.deploy_vpc ? module.networking[0].network_private_subnet_cidrs : var.network_private_subnet_cidrs

database =
database = try(
{
name = module.database[0].name
password = replace(module.database[0].password, "$", "\\$\\$")
endpoint = module.database[0].endpoint
username = module.database[0].username
parameters = module.database[0].parameters
},
{
name = null
password = null
endpoint = null
username = null
parameters = null
}
)

object_storage = try(
module.object_storage[0],
Expand Down

0 comments on commit a5765c4

Please sign in to comment.