Add a private redis instance.
This commit is contained in:
@@ -261,3 +261,27 @@ module "cloudsql" {
|
||||
module.networking
|
||||
]
|
||||
}
|
||||
|
||||
#################### Redis ################################
|
||||
|
||||
module "redis" {
|
||||
source = "../modules/redis"
|
||||
project = var.project
|
||||
region = var.region
|
||||
private_network_id = module.networking.private_network_id
|
||||
|
||||
depends_on = [
|
||||
module.networking
|
||||
]
|
||||
}
|
||||
|
||||
output "redis_host" {
|
||||
description = "Hostname/IP Address for redis database."
|
||||
value = module.redis.redis_host
|
||||
}
|
||||
|
||||
output "redis_port" {
|
||||
description = "Port for redis database."
|
||||
value = module.redis.redis_port
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user