code: def volumes(self):
          
          return [
              EBSVolume(res) for res in db.Resource.join(
                  ResourceProperty, Resource.resource_id == ResourceProperty.resource_id
              ).filter(
                  Resource.resource_type_id == ResourceType.get('aws_ebs_volume').resource_type_id,
                  ResourceProperty.name == 'attachments',
                  func.JSON_CONTAINS(ResourceProperty.value, func.JSON_QUOTE(self.id))
              ).all()
          ]
docs: Returns a list of the volumes attached to the instance
  
          Returns:
              `list` of `EBSVolume`