AWS-AZURE-LOGIN NOT WORKING WITH MFA

Juan segundo Ferreyra 1 Reputation point
2022-09-16T15:29:55.997+00:00

Hello Everyone,

Hope you are doing well. I'm currently having an issue with the aws-azure-login.
I have MFA in my account activated and whenever I try to access my AWS profile I have to do so with the complete command "aws-azure-login --profile foo --mode=debug" or it won't let me access. Anyway, once I can "access" the profile It's never assumed and it's like if nothing ever happened.
If I run the command "aws s3 ls --profile development" It would list the default profile bucket and not the one I'm supposed to be logged in.

Do you have any insight of what might be happening and why the MFA is having issues with the aws-azure-login client?

PS: Co-workers who doesn't have the MFA activated are logging in without issues.

Thank you in advance!

Microsoft Entra
{count} votes

1 answer

Sort by: Most helpful
  1. Takahito Iwasa 4,851 Reputation points MVP
    2022-09-20T21:34:53.477+00:00

    Hi, @Juan segundo Ferreyra

    I am also available in the MFA environment.

    Are you logged in with a specified profile?

    aws-azure-login --profile foo

    Also try the environment variable AWS_PROFILE.

    Also, can you log in correctly when MFA is not enabled in your environment?
    You are using the AWS CLI named profile, but have you confirmed that the settings in the profile's configuration file are correct in the first place?

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.