There are several good guides to “digital wills” and one’s “digital legacy” out there, including e.g. handling your Facebook and Google accounts, and I encourage you to both go to those links and research the subject further. A few things seem particularly worth noting, though.
I really wish I hadn’t had cause to write this piece, but it recently came to my attention, in an especially unfortunate way, that death in the modern era can have a complex and difficult technical aftermath. You should make a will, of course. Of course you should make a will. But many wills only dictate the disposal of your assets. What will happen to the other digital aspects of your life, when you’re gone?