def METHOD_NAME():
    """Gets AWS configuration from environment"""
    env_params_cfg_map = (
        ('AWS_ACCESS_KEY_ID', 'aws_access_key_id'),
        ('AWS_SECRET_ACCESS_KEY', 'aws_secret_access_key'),
        ('AWS_DEFAULT_REGION', 'region'),
    )
    configs = {}
    for env_param, cfg_key in env_params_cfg_map:
        cmd = ["aws", "configure", "get", cfg_key]
        proc_inst = run_command(cmd)
        val = None
        if proc_inst.returncode == 0:
            val = proc_inst.stdout.strip()
        if not val:
            val = os.environ.get(env_param)
        configs[cfg_key] = val
    return configs