title: Lambda service throws error execution role does not have permissions to call receiveMessage on SQS
body: <p>I have a SQS queue and I want to trigger a lambda function when a message arrives in the queue.  I have written the lambda function and that works successfully when I click the "Test" button.  When I go to SQS and try to configure it as a lambda trigger I see the error message below.  </p>
  
  <p>I have created the SQS queue and lambda function using the same user and role and the lambda function has execute permissions against the same role.</p>
  
  <p>I also have also added SQS receiveMessage permission but it doesn't seem to make a difference unless I'm doing something wrong when I set it.</p>
  
  <p>What could be causing the problem?</p>
  
  <p>Thanks for any help</p>
  
  <p><a href="https://i.stack.imgur.com/dA7uz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dA7uz.png" alt="enter image description here"></a>  </p>