def get_efs_ids_from_terraform_output(config_data):
    """Grab the EFS Ids from the previous terraform output"""
    for efs in config_data['pcluster']['efs_resources']:
        name = efs['name']
        id = config_data['terraform_output']['pcluster_resources'][name]['value']
        efs['fs_id'] = id
    return config_data