簡體   English   中英

使用 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="map 'templateResponse' 類型 'Liquid' 的 'contentType' 屬性必須設置為 'text/plain'。"

我已經嘗試將 contentType 添加到資源屬性,但 Terraform 不知道它。

此處不應使用名為“contentType”的參數。

我錯過了什么?

這是代碼:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM