The CME shown was captured by NASA's SDO spacecraft on Aug 31, 2012. The CME was not aimed directly at Earth, but did connect with Earth's magnetosphere, causing spectacular auroras on the night of Sep 3, like this one captured over Whitehorse, Yukon by David Cartier, Sr.
Source: https://www.nasa.gov/mission_pages/sunearth/news/News090412-filament.html