简体   繁体   English

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

[英]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.

相关问题 Terraform Snowpipe on Azure 集成错误 - Terraform Snowpipe on Azure error on integration Terraform 创建原则时出错 - Terraform error while creating principles Terraform - 为 Azure 个位置创建一个列表(字符串) - Terraform - creating a list(string) for Azure locations Terraform:使用 local_account_disabled=true 创建 azure kube.netes 服务时出错 - Terraform: Error when creating azure kubernetes service with local_account_disabled=true 从 terraform 创建的 pubsub 模式定义错误 - Error in pubsub schema definition creating from terraform Azure terraform 导入错误,无法导入资源 - Azure terraform import error, unable to import resource 使用 Terraform 为 Azure 数据工厂管道创建数组变量或参数 - Creating Array Variable or Parameters For Azure Data Factory Pipeline Using Terraform 使用 terraform 在 aws_vpc 中创建 su.net 时出错 - Error creating subnet in aws_vpc with terraform 为sqs及其访问策略创建terraform代码时出现循环错误 - cycle error when creating terraform code for sqs and its access policy 使用 terraform 创建 aks 集群时出现 Hashicorp 提供程序错误 - Getting Hashicorp Provider Error while creating aks cluster using terraform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM