Managing roles with AWS can be pretty darn difficult. Thankfully, today I was not short on patience.

I spend all of July 4th’s morning trying to get a React application to use admin roles for a user to work with AWS services. Instead of using the admin roles it was assigned on AWS Cognito, the token was using the temporary roles created for authenticated users.

To be completely honest, I never got it to work. The group was not able to be assigned from Cognito so the user could use roles attached to them. I tried modifying the role’s trusted relationships to add Cognito, but that did…