Skip to content

Commit

Permalink
Replace map function which is no longer supported in Terraform v1.x (#30
Browse files Browse the repository at this point in the history
)

Co-authored-by: Diego OJ <diegoaojeda@gmail.com>
  • Loading branch information
diego-ojeda-binbash and diegoaojeda authored Oct 29, 2021
1 parent c7cec10 commit 0f75166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instances.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "aws_instance" "main" {
}
}

volume_tags = merge(var.tags, map("Backup", var.root_device_backup_tag))
volume_tags = merge(var.tags, { "Backup" = var.root_device_backup_tag })
tags = var.tags

lifecycle {
Expand Down

0 comments on commit 0f75166

Please sign in to comment.