简体   繁体   中英

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.

Message="The 'contentType' property of map 'templateResponse' of type 'Liquid' must be set to 'text/plain'."

I've already tried to add the contentType to the resource properties but it is unknown to Terraform.

An argument named "contentType" is not expected here.

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM