The Fault in Our Stars” actor Ansel Elgort is set to star in the Black Label Media drama “Code Name Veil.”

“Kill the Messenger” director Michael Cuesta is helming the pic from the script by Matt Billingsley. The story is based on actual events, following a young CIA agent as he struggles to maintain his sense of morality while navigating dangerous conditions in 1980s Beirut.

Black Label Media is financing with Trent Luckinbill, Thad Luckinbill and Molly Smith producing. Jon Schumacher and Ellen H. Schwartz will exec produce. CAA is repping domestic rights. Principal photography begins in Los Angeles on Nov. 2.

Following his breakthrough performance in “The Fault in Our Stars,” Elgort has become one of Hollywood’s hot upcoming actors; in the “Divergent” series, he appears as Shailene Woodley’s brother. The franchise’s most recent installment, “Allegiant: Part 1,” is slated for a March 2016 release.

Elgort is also set to star opposite Lily James in Edgar Wright’s next pic, “Baby Driver,” which Sony has dated for March 17, 2017. He can be seen next opposite Chloe Moretz in “November Criminals.”

He is repped by CAA, Brookside Artist Management and Kevin Yorn. The Hollywood Reporter first reported the news.