@cdthomer wrote a great post about the two main options for triggering KM macros from a Stream Deck.
To answer your question succinctly, it takes about ten seconds. You add a KM Link button to your Stream Deck profile, then select the macro from the button's dropdown list. The most recently edited macro is always at the top of the list. From there you can name the button and/or add an icon if you like.