def METHOD_NAME(self):
    # Here the profile is from an env var, the
    # region is from the config file, and the credentials
    # are from an iam-role.
    env_vars = {
        'profile': 'myprofilename'
    }
    config_file_vars = {
        'region': 'us-west-2'
    }
    credentials = mock.Mock()
    credentials.access_key = 'access_key'
    credentials.secret_key = 'secret_key'
    credentials.method = 'iam-role'
    session = FakeSession(
        all_variables={'config_file': '/config/location'},
        environment_vars=env_vars,
        config_file_vars=config_file_vars,
        credentials=credentials)
    session.session_var_map = {
        'region': ('region', 'AWS_DEFAULT_REGION'),
        'profile': ('profile', 'AWS_DEFAULT_PROFILE')}
    session.full_config = {
        'profiles': {'default': {'region': 'AWS_DEFAULT_REGION'}}}
    stream = six.StringIO()
    self.configure_list = ConfigureListCommand(session, stream)
    self.configure_list(args=[], parsed_globals=None)
    rendered = stream.getvalue()
    # The profile came from an env var.
    self.assertRegex(
        rendered, r'profile\s+myprofilename\s+env\s+AWS_DEFAULT_PROFILE')
    # The region came from the config file.
    self.assertRegex(
        rendered, r'region\s+us-west-2\s+config-file\s+/config/location')
    # The credentials came from an IAM role.  Note how we're
    # also checking that the access_key/secret_key are masked
    # with '*' chars except for the last 4 chars.
    self.assertRegex(
        rendered, r'access_key\s+\*+_key\s+iam-role')
    self.assertRegex(
        rendered, r'secret_key\s+\*+_key\s+iam-role')