You can't attach a deck ledger through a foam board backing. It needs to be attached directly to the wood framing. You also need to flash the deck ledger properly. An alternative would be to build a free standing structure. This way the house envelope stays intact.
Ron
Ron