I wanted to try a new approach to configuring and enforcing some actions from my AWS IAM users in which they are denied access to certain actions on console unless they have performed a specific action (like adding a tag to themselves or activating a MFA device). Yes it would be a composite condition and the second part is dealt with.
For that I would need to allow different actions when the user is authenticated using their access key or using their username/password (namely using the aws web console). But I can't seem to find any way to identify that.
So I guess the exact question is:
Is there a condition for policies that would allow or deny an action specifically when the user is authenticated by user/pass and not using their access key?
I have tried reading the whole documentation for aws policy conditionals but couldn't find any condition that suits those needs. Hoping to find someone creative that had the same problem on the internet I tried browsing, but my google-fu seems to be bad because every query leaves me with thousands of tutorials on how to provide or deny console access to a user, period.