When you run cdk synth , the cli by default prints the whole CloudFormation template to the console.
cdk synth
To avoid that, pass in the --quiet flag.
--quiet
Do it like so:
Assuming you have a CodeBuild project and you want to specify the runtime to be Node.js latest, here…