Can I restrict an SSH user from assuming the IAM role attached to an EC2 instance?
Context: The EC2 instance IAM role privileges grant more permissions than desired to the users who SSH into the instance. Therefore, we want to restrict SSH user access so that it should not automatically assume the EC2 IAM role upon…