I have account A from which I assumed the role for account B. Now since my work is done I want to assume a role for account C. But since only Account A can assume a role for account C and B can't, I am unable to do so.
Any way I can invalidate/switch users for an assumed role? The minimum timeout is 15 mins which would be too much wait for a user.
Edit: Trying to achieve it via AWS CLI
Running below command:
aws sts assume-role --role-arn **** --role-session-name jenkins --external-id ****