title: How to programmatically switch between IAM users when routing your app?
body: <p>Is it possible to implement such logic when you want different IAM users to handle various routes in your code?</p>
  <p>Say you have set up three IAM users which have respective CRUD permissions:</p>
  <pre><code>iam_users = [
      app_reader,    // Read permission
      app_updater,   // Update permission
      app_deleter    // Delete permission
  ]
  </code></pre>
  <p>and your logic is sth like:</p>
  <pre><code>    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 }
  </code></pre>