title: Terraform filters to retrieve key value
body: <p>From the block of Terraform code which is from a state file, I need to
  write a filter criteria that points at&quot;dev-devic-efs&quot; and pull the value &quot;arn:aws:kms:eu-east-1:144382646821:key/e1652537-a360-4086-813d-4fc6668425a6&quot;
  Any help on how to do this filter would be much appreciated. Thank you</p>
  <pre><code>enter code here
  
  &quot;efs_key&quot;: {
        &quot;value&quot;: {
          &quot;alias&quot;: {
            &quot;1-efs&quot;: &quot;arn:aws:kms:eu-east-1:144382646821:key/e1b7e7fd-5ec3-41ce-94a8-8d34d43164ca&quot;,
            &quot;2-efs&quot;: &quot;arn:aws:kms:eu-east-1:144382646821:key/2de9045a-96bc-4bc0-83ef-b420d9ff3dc1&quot;,
            &quot;3-efs&quot;: &quot;arn:aws:kms:eu-east-1:144382646821:key/e379f46e-a36d-47e8-9652-d40b00f385ba&quot;,
            &quot;4-efs&quot;: &quot;arn:aws:kms:eu-east-1:144382646821:key/69d0bd86-53ea-4a51-b4a0-76754c7ed8fd&quot;,
            &quot;5-efs&quot;: &quot;arn:aws:kms:eu-east-1:144382646821:key/dfc1ead3-1b72-4c01-bdf2-c624ee565fca&quot;,
            &quot;dev-devic-efs&quot;: &quot;arn:aws:kms:eu-east-1:144382646821:key/e1652537-a360-4086-813d-4fc6668425a6&quot;
          }
        },
        &quot;type&quot;: [
          &quot;object&quot;,
          {
            &quot;alias&quot;: [
              &quot;object&quot;,
              {
                &quot;1-efs&quot;: &quot;string&quot;,
                &quot;2-efs&quot;: &quot;string&quot;,
                &quot;3-efs&quot;: &quot;string&quot;,
                &quot;4-efs&quot;: &quot;string&quot;,
                &quot;5-efs&quot;: &quot;string&quot;,
                &quot;dev-devic-efs&quot;: &quot;string&quot;
              }
            ]
          }
        ]
      }
  </code></pre>