So we've been trying to create a system where a user logins via AWS Congito. There is an identity pool associated with the user pool, so each authenticated user that logs in gets assigned an IAM Role.
Now what I would like to achieve is to have each user log in and create a new KMS master key. This should should only be accessible by this user and not any other user within the user pool. The problem is that each role gets assigned the same IAM Role. So in each authenticated user can access all the keys created by every user in this pool.
Is there any way I can associate a KMS key with a specific cognito user. So that they are only able to access their keys and are restricted by AWS from accessing any other keys? Any help would be greatly appreciated.