code: def _configure_ebs_volume(self, vol_type, name, size, delete_on_termination):
          
          # From GitHub boto docs: http://git.io/veyDv
          root_dev = boto.ec2.blockdevicemapping.BlockDeviceType()
          root_dev.delete_on_termination = delete_on_termination
          root_dev.volume_type = vol_type
          if size != 'default':
              root_dev.size = size  # change root volume to desired size
          bdm = boto.ec2.blockdevicemapping.BlockDeviceMapping()
          bdm[name] = root_dev
          return bdm
docs: Sets the desired root EBS size, otherwise the default EC2 value is used.
  
          :param vol_type: Type of EBS storage - gp2 (SSD), io1 or standard (magnetic)
          :type vol_type: str
          :param size: Desired root EBS size.
          :type size: int
          :param delete_on_termination: Toggle this flag to delete EBS volume on termination.
          :type delete_on_termination: bool
          :return: A BlockDeviceMapping object.
          :rtype: object