Skip to main content

Deployment

Deployment​

Deployment involves several steps to prepare the environment and deploy the application to AWS using AWS CDK. Follow these steps to deploy the application:

Preparing the Environment​

  1. Ensure all prerequisites are installed, including AWS CLI, Node.js, and AWS CDK.
  2. Configure AWS credentials using aws configure.

Running the Backend​

Use the provided Makefile to run backend services:

make run

This command cleans up the routers, generates new routers, and sets up various services like Firebase, Redis, and OpenSearch.

AWS CDK Deployment​

Navigate to the CDK directory and run the following commands to deploy your infrastructure:

ENVIRONMENT=production cdk deploy --profile v3-prod BackendCicdStack --parameters Environment=production

This command will deploy all the resources defined in the CDK stack, tailored to the specified environment. Adjust the ENVIRONMENT and --profile parameters according to the branch you are working on, similar to how contexts are switched in the admin-frontend.