diff --git a/CHANGELOG b/CHANGELOG index d07b4ef951fb2fb88b6a3b8f5e98440378683c4b..fb39133d46601a040b94b7732bf289558f4c3155 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [7.1.0] - 2023-05-15 + +### Changed +- Added the load balancer(s) as an output from the module. +- Added new variable to pass in an `ssl_policy` self-link that is used in the load balancer + (if present). + ## [7.0.0] - 2022-12-19 ### Fixed diff --git a/load_balancer.tf b/load_balancer.tf index c49d899e6e177a7cb12c3a0fceb59c4437636766..040b88cc90a974fb2e6962b72c9c71a6e1dd5be0 100644 --- a/load_balancer.tf +++ b/load_balancer.tf @@ -36,6 +36,7 @@ module "webapp_http_load_balancer" { use_ssl_certificates = var.use_ssl_certificates ssl_certificates = var.ssl_certificates managed_ssl_certificate_domains = local.dns_names + ssl_policy = var.ssl_policy # Whether to create an IPv6 address to the load balancer. enable_ipv6 = var.enable_ipv6 diff --git a/outputs.tf b/outputs.tf index 3564fca04b345c3bcabc3b533c363611b473451f..30279816fc485375e946fe2f62ac3599cb7aee5e 100644 --- a/outputs.tf +++ b/outputs.tf @@ -10,6 +10,11 @@ output "service_account" { value = google_service_account.webapp } +output "load_balancer" { + description = "Load balancer for the webapp" + value = module.webapp_http_load_balancer +} + output "domain_mapping_present" { description = "Flag indicating if a domain mapping is present for the webapp" value = local.domain_mapping_present diff --git a/variables.tf b/variables.tf index 2d24f7884cf77a74815d07907e15bb11602fa371..cc45ee8fd4fa870841c939c97c0e2b12f80a194d 100644 --- a/variables.tf +++ b/variables.tf @@ -146,6 +146,15 @@ variable "ssl_certificates" { EOI } +variable "ssl_policy" { + type = string + default = null + + description = <<EOI + Selflink to the SSL Policy for the load balancer to use. + EOI +} + variable "enable_ipv6" { type = bool default = false