def METHOD_NAME(app_name, env_name):
    settings = elasticbeanstalk.describe_configuration_settings(
        app_name, env_name
    )['OptionSettings']
    namespace = 'aws:elasticbeanstalk:application:environment'
    environment_variables = {
        setting['OptionName']: setting['Value'] for setting in settings if setting["Namespace"] == namespace
    }
    print_environment_vars(environment_variables)