What ever you do, DO NOT lag anything directly to the rim joists or sill of the house I'd make it free standing. Just lagged to the deck. All it needs is to support itself. Not load bearing Wind brace the corner posts. The bare joists will still catch wind.
'16 Camry LE STP synth 0w20 and STP filter.
1994 Ranger ,the Rat, 5w30 dino, STP filter
'16 Camry SE, Valvoline bulk 0w20 and ? filter