title: Split a multiline file into Terraform variable to access the values by their keys
body: <p>I have a third-party maintained file with a lot of lines and it looks like:</p>
  
  <pre><code># a comment lines
  aaa.bbb.cc 423 
  ddd.ee.fff 452
  ...
  tons.like.them 111
  </code></pre>
  
  <p>Is there any way to load the file to a local map and access its keys in Terraform using the syntax like?:</p>
  
  <pre><code>"${lookup(var.locals.mylist, 'ddd.ee.fff', 0)}"
  </code></pre>