title: AWS SSM lookup using arns in ansible
body: <p>I am getting only ssm resource arns, so I need to get a secret using arns</p>
  <p>my ansible example arn looks like below</p>
  <p>ARN: which is exists, checked via console</p>
  <pre><code>arn:aws:ssm:us-west-2:1234578909:secret:test/myuser/pass1 
  </code></pre>
  <p>I tried below ansible code but did not work.</p>
  <pre><code> debug: msg=&quot;{{ lookup('aws_ssm', 'arn:aws:ssm:us-west-2:1234578909:secret:test/myuser/pass1  ) }}&quot;
  </code></pre>
  <p>returing empty ..</p>