使用 Terraform 在 Azure 上创建 Liquid Map 时出错

Error creating Liquid Map on Azure with Terraform

我正在尝试通过资源“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'."

我已经尝试将 contentType 添加到资源属性,但 Terraform 不知道它。

An argument named "contentType" is not expected here.

我错过了什么?

代码如下:

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")
}

这是已解决的 Azurerm 插件错误。

https://github.com/hashicorp/terraform-provider-azurerm/issues/15350