Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ Details
=======
Because Terrraform does not allow you to reference and object inside of an object I utilized submodules to make sub-object elements available downstream. If more configuration variables are added to the primary object data it's likely they will be need to be passed into the backend modules, then made available as outputs to be used elsewhere.

Contributing
=======
This project uses [Commitizen](https://commitizen-tools.github.io/commitizen/).

Use the following command to stage a release after adding files with `git commit`
```bash
git cz
```
This will guide you through a series of prompts to format your commit message correctly.

This only needs to be done once per PR


Authors
=======
Expand Down
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ data "google_certificate_manager_certificate_map" "default" {
# Backend Serverless Network Endpoint Groups
module "serverless_negs" {
for_each = var.services
source = "github.com/brandlive1941/terraform-module-backend-serverless?ref=v1.1.1"
source = "github.com/brandlive1941/terraform-module-backend-serverless?ref=v1.2.0"
project_id = var.project_id
name = coalesce(each.value.backend["name"], each.key)
cloud_run_services = each.value["cloud_run_regions"]
enable_public = each.value.backend["enable_public"]
enable_cdn = each.value.backend["enable_cdn"]
default_custom_error_response_policy = each.value.backend["default_custom_error_response_policy"]
iap_config = each.value.backend["iap_config"]
Expand Down
5 changes: 3 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ variable "services" {
name = string
}))
backend = optional(object({
name = optional(string)
enable_cdn = optional(bool, false)
name = optional(string)
enable_public = optional(bool, true)
enable_cdn = optional(bool, false)
default_custom_error_response_policy = optional(object({
custom_error_responses = optional(list(object({
match_response_codes = optional(list(string))
Expand Down