Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWS IAM — Using conditionals  RSS feed

 
s ravi chandran
Ranch Hand
Posts: 571
6
Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
s ravi chandran
Ranch Hand
Posts: 571
6
Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would request moderators to delete this post.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!