From 604c1d1d28402fc3c50474f2561fe2e690dd7e22 Mon Sep 17 00:00:00 2001 From: Erik Schultink Date: Wed, 17 Jun 2026 09:37:54 -0700 Subject: [PATCH] Update example to v0.6.5 --- google-workspace.tf | 2 +- main.tf | 26 +++++--------------------- msft-365.tf | 4 ++-- variables.tf | 1 + 4 files changed, 9 insertions(+), 24 deletions(-) diff --git a/google-workspace.tf b/google-workspace.tf index 84f59ad..40283ec 100644 --- a/google-workspace.tf +++ b/google-workspace.tf @@ -7,7 +7,7 @@ provider "google" { module "worklytics_connectors_google_workspace" { - source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-google-workspace?ref=v0.6.4" + source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-google-workspace?ref=v0.6.5" google_workspace_connector_settings = var.google_workspace_connector_settings diff --git a/main.tf b/main.tf index c047e3e..6ee57d2 100644 --- a/main.tf +++ b/main.tf @@ -29,7 +29,7 @@ locals { # be provisioned via Terraform, so doesn't add any dependencies # call this 'generic_source_connectors'? module "worklytics_connectors" { - source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors?ref=v0.6.4" + source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors?ref=v0.6.5" base_dir = var.psoxy_base_dir enabled_connectors = var.enabled_connectors @@ -102,7 +102,7 @@ locals { module "psoxy" { - source = "git::https://github.com/worklytics/psoxy//infra/modules/gcp-host?ref=v0.6.4" + source = "git::https://github.com/worklytics/psoxy//infra/modules/gcp-host?ref=v0.6.5" gcp_project_id = var.gcp_project_id environment_name = var.environment_name @@ -165,7 +165,7 @@ locals { module "connection_in_worklytics" { for_each = local.all_instances - source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-proxy-connection-generic?ref=v0.6.4" + source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-proxy-connection-generic?ref=v0.6.5" host_platform_id = local.host_platform_id proxy_instance_id = each.key @@ -202,24 +202,8 @@ output "api_connector_instances" { }, v.sanitized_bucket != null ? { sanitized_bucket = v.sanitized_bucket } : {}, { - test_examples = merge({ - api_requests = concat( - [for path in try(v.example_api_calls, []) : "GET ${path}"], - [for req in try(v.example_api_requests, []) : merge( - { - request = "${try(req.method, "GET")} ${req.path}" - }, - try(req.method, "GET") == "POST" || try(req.method, "GET") == "PUT" ? merge( - try(req.content_type, null) != null ? { content_type = req.content_type } : {}, - try(req.body, null) != null ? { body = req.body } : {} - ) : {} - )] - ) - }, - try(v.enable_async_processing, false) ? { supports_async = true } : {}, - try(v.example_api_calls_user_to_impersonate, null) != null ? { user_to_impersonate = try(v.example_api_calls_user_to_impersonate, null) } : {} - ) } - ) } + test_examples = v.test_examples + }) } } output "bulk_connector_instances" { diff --git a/msft-365.tf b/msft-365.tf index aa06ccd..664bb89 100644 --- a/msft-365.tf +++ b/msft-365.tf @@ -1,7 +1,7 @@ # BEGIN MSFT module "worklytics_connectors_msft_365" { - source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-msft-365?ref=v0.6.4" + source = "git::https://github.com/worklytics/psoxy//infra/modules/worklytics-connectors-msft-365?ref=v0.6.5" msft_365_connector_settings = var.msft_365_connector_settings @@ -35,7 +35,7 @@ locals { module "msft-connection-auth-federation" { for_each = module.worklytics_connectors_msft_365.enabled_api_connectors - source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-federated-credentials?ref=v0.6.4" + source = "git::https://github.com/worklytics/psoxy//infra/modules/azuread-federated-credentials?ref=v0.6.5" application_id = each.value.connector.id display_name = "GcpFederation" diff --git a/variables.tf b/variables.tf index 42dc238..99dc9d1 100644 --- a/variables.tf +++ b/variables.tf @@ -260,6 +260,7 @@ variable "custom_api_connectors" { path = string content_type = optional(string, "application/json") body = optional(string, null) + headers = optional(map(string), {}) })), []) example_api_calls_user_to_impersonate = optional(string) secured_variables = optional(list(object({