For Debian, you only need to install growroot.
dpkg -l | grep cloud-initramfs-growroot
If information similar to the following is displayed, growroot is installed successfully:
root@bms:/home/bzqd# dpkg -l | grep cloud-initramfs-growroot ii cloud-initrramfs-growroot 0.18.debian5 all automatically resize the root partition on first boot