Fixed issue that was causing error handling in provision script to not work correctly - now resolved.
Needed to look at $LastErrorCode to detect when an error occurred when executing terraform in order to selectively only run rest of script when previous execution was successful