github cloudposse/terraform-aws-dynamic-subnets 0.38.0
v0.38.0

latest releases: 2.4.2, v2, 2.4.1...
3 years ago
Remove use of deprecated map() @alexjurkiewicz (#126)

Remove use of deprecated map()

This function is removed in the upcoming Terraform 0.15. Since Terraform
0.12, you can create maps with a literal syntax instead.

what

  • No change to module behaviour

why

Adds compatibility with Terraform 0.15. Without this, you'll see errors like:

│ Error: Error in function call
│
│   on .terraform/modules/dynamic_subnets/private.tf line 8, in module "private_label":
│    8:     map(var.subnet_type_tag_key, format(var.subnet_type_tag_value_format, "private"))
│     ├────────────────
│     │ var.subnet_type_tag_key is a string, known only after apply
│     │ var.subnet_type_tag_value_format is a string, known only after apply
│
│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... })
│ syntax to write a literal map.

Don't miss a new terraform-aws-dynamic-subnets release

NewReleases is sending notifications on new releases.