diff --git a/locals.tf b/locals.tf index b5cbd139..6d688c9e 100644 --- a/locals.tf +++ b/locals.tf @@ -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],