AWS Architech
Published in

AWS Architech

AWS CDK: Specify Runtime Version for CodeBuild Project

Assuming you have a CodeBuild project and you want to specify the runtime to be Node.js latest, here is your answer:

new PipelineProject(this, `CodeBuildProject`, {
buildSpec: BuildSpec.fromObject({
version: '0.2',
phases: {
install: {
'runtime-versions': {
nodejs: "latest"
pre_build: {
commands: [
"npm install"




short posts on solutions architecture on the AWS cloud and how to posts

Recommended from Medium

Testing global keyboard handling in React hooks with TypeScript

looking through past gif animations I’ve made

Eluding the Triangle of Doom

From CommonJS to ES Modules: How to modernize your Node.js app

User Login using Firebase and Ionic

Lazy loading (and preloading) components in React 16.6

Build an iOS Screen Recorder With React Native

[jQuery] Some jQuery Dom Element Methods

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nazreen Mohamad

Nazreen Mohamad

Technical Instructor and Software Engineer.

More from Medium

042722 TIL Use AWS with DB

Introducing Stacktape

AWS DynamoDB Admin

AWS CDK: attach permissions to existing role