Skip to content

Commit

Permalink
Custom connector use json instead of file AB#18982 (#404)
Browse files Browse the repository at this point in the history
* use json instead of file

* extended with swagger path
  • Loading branch information
patrik-pa4k authored Mar 11, 2024
1 parent d7c2177 commit b9403f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "azurerm_resource_group_template_deployment" "log_analytics" {
value = var.function_url
},
"swagger" = {
value = jsondecode(file(var.swagger))
value = var.swagger_path != "" ? jsondecode(file(var.swagger_path)) : jsondecode(var.swagger)
}
})
deployment_mode = "Incremental"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ variable "swagger" {
type = string
description = "Swagger definition"
}

variable "swagger_path" {
description = "Path to the Swagger JSON file"
type = string
default = ""
}

0 comments on commit b9403f5

Please sign in to comment.