Is there already a roof over the deck? I'm assuming not, since if there was it would already be attached. The proper method is to cut back the shingles and build the deck roof against the roof sheething. Flash the valeys and shingle the roof as normal.
If possible, maybe you could attach a photo of what you're talking about and I could go into more detail.