def action_snapshot(self):
        vol = self._determine_volume()
        snapshot = self.ec2.create_snapshot(vol.id)
        self.resource.updated()
        self.log.info("Created snapshot of %s as %s" % (vol.id, snapshot.id))
dataset/ETHPy150Open samuel/kokki/kokki/cookbooks/aws/libraries/providers.py/EBSVolumeProvider.action_snapshot/original