I first deleted ~/.aws/credentials file (made a copy), and then ran aws configure again. It works for me. But actually, just need to remove the session part, since it is the difference between new generated credentials file.