def get_credential_method_description(session):
    """Provides a helpful message describing the current IAM execution context."""
    profile = ''
    try:
        profile = session.profile_name
    except:
        pass
    try:
        credentials = session.get_credentials()
        return '{} ({}{})'.format(credentials.method, 'profile {} -> '.
            format(profile) if profile != 'default' else '', credentials.
            access_key)
    except:
        return 'error describing session credentials'
