- In frontend project,
./packages/frontend
, create two files.env.local
and.env.production
with contents as mentioned in theenv.example
file. - In the
ec2
cdk project,./packages/ec2
, link thecommon-constructs
project:npm run link:common-constructs
- Build frontend:
npm run build -w frontend
- Build the cdk project:
npm run build -w ec2
- Change into the
ec2
directory:cd packages/ec2
- Build the project:
npm run build
- Assume the correct AWS profile.
- Deploy the stack:
npx cdk deploy --all