You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems there is a change in come function Terraform handles. It was a warning but now if you upgrade to tf 0.15.0 it will throw an error.
β·
β Error: Error in function call
β
β on .terraform/modules/eks_workers.autoscale_group/main.tf line 14, in resource "aws_launch_template" "default":
β 14: for_each = flatten(list(lookup(block_device_mappings.value, "ebs", [])))
β βββββββββββββββββ
β β block_device_mappings.value will be known only after apply
β
β Call to function "list" failed: the "list" function was deprecated in Terraform v0.12 and is no longer available; use tolist([ ... ]) syntax to write a literal list.
Expected Behavior
We should handle properly new terraform function such as tolist instead of legacy list function:
Hello,
thanks for all your Terraform modules π
Describe the Bug
Seems there is a change in come function Terraform handles. It was a warning but now if you upgrade to tf 0.15.0 it will throw an error.
Expected Behavior
We should handle properly new terraform function such as tolist instead of legacy list function:
https://www.terraform.io/docs/language/functions/list.html
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
Environment (please complete the following information):
Additional Context
Here my fix:
for_each = flatten(tolist([lookup(block_device_mappings.value, "ebs", [])]))
Seems to work so far.
Related cloudposse/terraform-aws-ec2-autoscale-group#64
Feel free to ask me anything to help tackle this π
The text was updated successfully, but these errors were encountered: