In this section, we will clone the MeetAssist repository and deploy the complete infrastructure using AWS CDK.
Clone the repository from GitHub:
git clone https://github.com/AWS-Vinhomes-Chatbot/MeetAssist
cd MeetAssist
Before deploying the CDK application, we need to build the frontend dashboard.
cd frontend
Run the following command to install all necessary libraries:
npm i
After the installation is complete, run the build command:
npm run build
Once the process completes, a dist directory will be created, containing the index.html file and the assets folder.
Use this command to return to the project’s root folder:
cd ..
Deploy the CDK application. It will take about 20-30 minutes to deploy all of the resources.
cdk bootstrap aws://{{account_id}}/ap-northeast-1
cdk deploy --all
If you receive an error at this step, please ensure Docker is running on the local host or laptop.
Replace {{account_id}} with your actual AWS Account ID. You can find it by running:
aws sts get-caller-identity --query Account --output text
After the CDK deployment completes, you must run the DataIndexer Lambda function to populate the embeddings table with database schema information.
Use the following AWS CLI command:
aws lambda invoke \
--function-name DataIndexerStack-DataIndexerFunction \
--invocation-type Event \
response.json \
--region ap-northeast-1
The DataIndexer function generates vector embeddings of your database schema, which enables the chatbot to understand and query your data using natural language.
After completing all the steps above, your environment is fully deployed and initialized.
You can verify the deployment by checking:
CREATE_COMPLETE statusNow you can proceed to: