Problem scenario
You want to assume an IAM user from a command line of an EC-2 instance. What do you do?
Solution
Prerequisite
This solution requires you have the access key and its secret key in text.
Procedures
- Run this command: aws configure
- Respond to the next two prompts accordingly (so that it will be configured to use the IAM user account of your choice).
…