To hard no need for complications.
If the shelf is only a few mm thick say 3-4mm and its aluminum you dont even need a tap kit aluminum is very soft metal
Drill a hole in the alloy no lube needed if its small.Or if it’s needed only use the tinniest drop. Use a steel screw to thread the hole job done! If it was a bigger job then go all out.
Only tip i can add is before you drill start the hole with a hole punch so the drill bit stays aligned.
Common size would used be an M3. Bunnings have them but they are like 3mm long i bought some from Ebay i also cut some down with the angle grinder.
Also another cheap option if you have an impact driver just use self tapping metal screws.