There is an accessory wire under hood on the fuse panel that is ignition controlled.
If you want the tail light specifically, you can tap into it at the back of the switch.
Edit: brown at headlight switch for all 17’s except LE.
Edit2: looking at my wiring diagram, I am not quite sure where the LE gets tail light signal from.