Absolutely! It's not only possible but a great idea for keeping your outdoor space tidy and preventing cans from tipping over in the wind. The key is finding the right trash can and using proper hardware.
Look for outdoor trash cans specifically designed with mounting flanges or pre-drilled holes at the base. Many heavy-duty metal or rigid plastic models have these features. You'll need stainless steel or galvanized bolts, washers, and nuts to prevent rust. First, position the can where you want it on your deck. Mark the hole locations through the flanges onto the wood. Pre-drill pilot holes slightly smaller than your bolt diameter into the deck boards—avoid drilling into joists unless necessary for extreme weight. Place the can back, insert the bolts from the inside of the can (if possible), add a washer and nut underneath the deck board, and tighten securely.
Consider using a small, lockable bin if wildlife is a concern. Always ensure the lid seals well. This simple project creates a permanent, neat waste solution for your deck, patio, or balcony.