Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
AWS CDK in Practice

You're reading from  AWS CDK in Practice

Product type Book
Published in Jun 2023
Publisher Packt
ISBN-13 9781801812399
Pages 196 pages
Edition 1st Edition
Languages
Authors (2):
Mark Avdi Mark Avdi
Profile icon Mark Avdi
Leo Lam Leo Lam
Profile icon Leo Lam
View More author details

Table of Contents (17) Chapters

Preface Part 1: An Introduction to AWS CDK
Chapter 1: Getting Started with IaC and AWS CDK Chapter 2: A Starter Project and Core Concepts Part 2: Practical Cloud Development with AWS CDK
Chapter 3: Building a Full Stack Application with CDK Chapter 4: Complete Web Application Deployment with AWS CDK Chapter 5: Continuous Delivery with CDK-Powered Apps Chapter 6: Testing and Troubleshooting AWS CDK Applications Part 3: Serverless Development with AWS CDK
Chapter 7: Serverless Application Development with AWS CDK Chapter 8: Streamlined Serverless Development Part 4: Advanced Architectural Concepts
Chapter 9: Indestructible Serverless Application Architecture (ISAA) Chapter 10: The Current CDK Landscape and Outlook Index Other Books You May Enjoy

Configuring the project

Open this chapter’s code in your editor of choice. Just like in the previous chapters, we have divided the code into infrastructure, server, and web directories.

First, let’s go ahead and build the frontend for our application so that, just like in the previous chapter, CDK can upload the build directory’s contents to S3. Go to the web directory and, in the terminal, run the following command:

$ yarn

Follow this up with the following command:

$ yarn build:prod

Then, back in the infrastructure directory, run the following command:

$ yarn

This will install all the project’s dependencies.

Also, don’t forget to create the .env.production file with the required environmental variables.

With that sorted out, let’s move on to serverless computing.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}