From 4d760690de417c13777def7011508b8b427cd2c1 Mon Sep 17 00:00:00 2001 From: Amit Serper Date: Thu, 15 Jul 2021 15:05:00 -0400 Subject: [PATCH] Update main.tf map() is a deprecated function. Changed map() to tomap() --- AWS/Terraform/modules/exchange/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AWS/Terraform/modules/exchange/main.tf b/AWS/Terraform/modules/exchange/main.tf index 6c6820c..840c19e 100644 --- a/AWS/Terraform/modules/exchange/main.tf +++ b/AWS/Terraform/modules/exchange/main.tf @@ -26,8 +26,8 @@ resource "aws_instance" "exchange" { # Uses the local variable if external data source resolution fails ami = coalesce(var.exchange_ami, data.aws_ami.exchange_ami.image_id) - tags = merge(var.custom-tags, map( - "Name", "${var.instance_name_prefix}exchange.windomain.local" + tags = merge(var.custom-tags, tomap( + {"Name" = "${var.instance_name_prefix}exchange.windomain.local"} )) subnet_id = var.subnet_id