Add a private redis instance.

This commit is contained in:
Tom Alexander
2021-07-12 23:15:54 -04:00
parent 49999fbf67
commit 7f186956db
2 changed files with 70 additions and 0 deletions

View File

@@ -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
}