import configparser


def get_aws_setting(name=''):
    """
    Gets a setting specified in the AWS section of the settings.ini file.
    :param name: One of the variable names in the AWS section of settings.ini
    :return: String
    """
    config = configparser.ConfigParser()
    config.read('settings.ini')
    try:
        config['AWS'][name]
    except KeyError:
        print(f'\'{name}\' is not a valid argument for get_aws_path(). Exiting.')
        exit()
    return config['AWS'][name]