Update main.tf

map() is a deprecated function. Changed map() to tomap()
This commit is contained in:
Amit Serper
2021-07-15 15:05:00 -04:00
committed by GitHub
parent 165a9b77ba
commit 4d760690de

View File

@@ -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