Produce Flame (Player's Handbook, p. 269) creates a small, persistent flame that grants vision and can, optionally, be thrown at someone to make an attack.
The Spell Sniper feat (p. 170), in addition to making spell attacks more accurate, allows the character to learn a cantrip that "requires an attack roll."
By RAW, can I pick Produce Flame with the Spell Sniper feat, or does it not require an attack roll?