Difference between revisions of "Terraform: dynamic blocks"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
  
 
<code>[[dynamic]]</code>
 
<code>[[dynamic]]</code>
 +
 +
== 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 ==
 
== Related ==

Revision as of 08:02, 7 June 2022

Advertising: