[英]Error creating Liquid Map on Azure with Terraform
I'm trying to create a Liquid Map on Azure using Terraform trough the resource "azurerm_logic_app_integration_account_map" but I'm getting the error saying that the Liquid needs a content-type "text/plain" to be set.我正在尝试通过资源“azurerm_logic_app_integration_account_map”使用 Terraform 在 Azure 上创建 Liquid Map,但我收到错误消息,指出 Liquid 需要设置内容类型“text/plain”。
Message="The 'contentType' property of map 'templateResponse' of type 'Liquid' must be set to 'text/plain'." Message="map 'templateResponse' 类型 'Liquid' 的 'contentType' 属性必须设置为 'text/plain'。"
I've already tried to add the contentType to the resource properties but it is unknown to Terraform.我已经尝试将 contentType 添加到资源属性,但 Terraform 不知道它。
An argument named "contentType" is not expected here.此处不应使用名为“contentType”的参数。
What am I missing?我错过了什么?
Here is the code:这是代码:
resource "azurerm_logic_app_integration_account_map" "templateRequest" {
name = "templateRequest"
resource_group_name = local.platform_core_rg
integration_account_name = local.integration_account_name
map_type = "Liquid"
content = file("${path.module}/liquid/templateRequest.liquid")
}
This was a bug over the Azurerm plugin that has been solved.这是已解决的 Azurerm 插件错误。
https://github.com/hashicorp/terraform-provider-azurerm/issues/15350 https://github.com/hashicorp/terraform-provider-azurerm/issues/15350
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.