• Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
all links
  • loops - How to for_each through a list(objects) in Terraform 0.12 - Stack Overflow

    foreach list of objects

    [{
       name = "xxx"
       description = "xxx"
       param = "xxx"
    },
    ...
    ]
    
    for_each = {
        for item in var.items:
        item.name => item
      }
    
    name = each.key OU each.value.name
    description = each.value.description
    
    January 11, 2022 - permalink - https://stackoverflow.com/questions/58594506/how-to-for-each-through-a-listobjects-in-terraform-0-12
    foreach terraform