Skip to content

Commit

Permalink
feat: adding a host parameter to the target server to be able to use DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
rs1986x committed Apr 22, 2024
1 parent fe6612a commit 6f36ae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sb-psc-attachment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "google_apigee_target_server" "target_server" {
description = "Target server for ${var.name} endpoint attachment"
env_id = each.value.environment_id
protocol = each.value.protocol
host = google_apigee_endpoint_attachment.endpoint_attachment.host
host = coalesce(each.value.host, google_apigee_endpoint_attachment.endpoint_attachment.host)
port = each.value.port
is_enabled = each.value.enabled

Expand Down
1 change: 1 addition & 0 deletions modules/sb-psc-attachment/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ variable "target_servers" {
protocol = optional(string, "HTTP")
port = optional(number, 80)
enabled = optional(bool, true)
host = optional(string, null)
s_sl_info = optional(object({
enabled = bool
client_auth_enabled = optional(bool, null)
Expand Down

0 comments on commit 6f36ae5

Please sign in to comment.