claranet / terraform-aws-lambda

Terraform module for AWS Lambda functions
MIT License
157 stars 127 forks source link

Simplify logic where ternary operator can return a list directly #51

Open lorengordon opened 5 years ago

lorengordon commented 5 years ago

The ternary operator can return any type now. Rather than machinations with slice/list/etc, just return the desired list value directly.

https://www.terraform.io/docs/configuration/expressions.html#conditional-expressions

Originally posted by @lorengordon in https://github.com/claranet/terraform-aws-lambda/pull/49