title: Terrfaform - AWS_AMI data source doesn't return any result
body: <p>Update: Found out about owners. <code>Valid values: an AWS account ID, self (the current account), or an AWS owner alias (e.g. amazon, aws-marketplace, microsoft).</code> But I still don't get any result.</p>
  <pre><code>data &quot;aws_ami&quot; &quot;example&quot; {
    owners = [&quot;microsoft&quot;]
  
    filter {
      name = &quot;name&quot;
      values = [&quot;Microsoft Windows Server 2019 Base&quot;]
    }
  }
  </code></pre>
  <p><code>Error: Your query returned no results. Please change your search criteria and try again.</code></p>
  <p>Also how does one know directory structure for a image from ec2 console? Like for example, in this <a href="https://letslearndevops.com/2018/08/23/terraform-get-latest-centos-ami/" rel="nofollow noreferrer">article</a> they're using a directory structure. How would I know the directory structure of a image in ec2 console? I could filter using name, but wanted to know how to figure out the directory structure as well.</p>
  <p><a href="https://i.stack.imgur.com/J3lgu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J3lgu.png" alt="enter image description here" /></a></p>