This discussion is about cloud provider identities in general rather than switching IAM roles, but might be of interest to you: