I am new to IAM in AWS. And, i desire to restrict the Query for various users to only table entries where primary key matches the cognito id. To achieve this, I created the policy:
But, when i am querying the table using Postman as shown below:
I am getting the following error:
Can someone please let me know what mistake i am doing?
I tried using policy sim, and i am unable to understand why the Query without LeadingKey as shown in pic below is allowed.
and when i provide the leading key, it says denied. Please see below pic: