The setproduct function finds all of the possible combinations of elements from all of the given sets by computing the cartesian product.| setproduct - Functions - Configuration Language | Terraform | HashiCorp Devel...
Import and manage existing resources with Terraform using configuration-driven import.| Import - Configuration Language | Terraform | HashiCorp Developer
The flatten function eliminates nested lists from a list.| flatten - Functions - Configuration Language | Terraform | HashiCorp Developer
Reference values in configurations, including resources, input variables, local and block-local values, module outputs, data sources, and workspace data.| References to Values - Configuration Language | Terraform | HashiCorp Developer
Dynamic blocks automatically construct multi-level, nested block structures. Learn to configure dynamic blocks and understand their behavior.| Dynamic Blocks - Configuration Language | Terraform | HashiCorp Developer
For expressions transform complex input values into complex output values. Learn how to filter inputs and how to group results.| For Expressions - Configuration Language | Terraform | HashiCorp Developer
Recently, I was creating a terraform module that creates an S3 bucket. An S3 bucket can only have one aws_s3_bucket_policy, and the module needed to include a default policy to force TLS v1.2. I also needed to be able to pass additional policy statements to the module which may or may not include a condition. Unfortunately, there is not an obvious way to include the condition only when it is part of the policy. This post shows how you can include a nested dynamic condition block when the bloc...| blue42.net