Terraform: dynamic blocks

From wikieduonline
Revision as of 14:03, 17 February 2023 by Newworld (talk | contribs) (→‎See also)
Jump to navigation Jump to search

https://www.terraform.io/language/expressions/dynamic-blocks A dynamic block acts much like a for expression.

dynamic { }

Example

 dynamic "parameter" {
   for_each = var.parameters
   content {
     name         = parameter.value.name
     value        = parameter.value.value
     apply_method = lookup(parameter.value, "apply_method", null)
   }
 }

Related

See also

Advertising: