Is it possible to implement such logic when you want different IAM users to handle various routes in your code?
Say you have set up three IAM users which have respective CRUD permissions:
iam_users = [
app_reader, // Read permission
app_updater, // Update permission
app_deleter // Delete permission
]
and your logic is sth like:
if (read request is sent) { set AWS user to app_reader }
else if (update request is sent) { set AWS user to app_updater }
else if (delete request is sent) { set AWS user to app_deleter }