quynhbuiofficial
MCP Serverquynhbuiofficialpublic

agentic_chatbot_cicd

自动化CI/CD流水线,将全栈智能聊天机器人系统部署到AWS EC2。

Repository Info

2
Stars
1
Forks
2
Watchers
0
Issues
Python
Language
-
License

About This Server

自动化CI/CD流水线,将全栈智能聊天机器人系统部署到AWS EC2。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

🤖 Agentic Chatbot CI/CD Deployment to AWS with GitHub Actions

This project automates the CI/CD pipeline to deploy a full-stack Agentic Chatbot System to AWS EC2 using Docker, Terraform, and GitHub Actions. The system includes frontend, backend, Elasticsearch, Neo4j, and an MCP server, designed to run efficiently within a secure VPC and subnet configuration.


📌 Architecture Diagrams

🔷 Terraform Infrastructure Layout

  • VPC: 10.0.0.0/16
  • Public Subnet: 10.0.0.0/22
  • Private Subnet-01: 10.0.4.0/22
  • Private Subnet-02: 10.0.8.0/22
  • Application Load Balancer: Distributes traffic evenly across backend services
  • NAT Gateway: Allow private subnets to access the internet securely
  • S3 Bucket: Store Terraform remote backend state

🔶 Chatbot Deployment Layout

  • Frontend:
    • Exposed via port 5173 from the internet
  • Application Load Balancer (ALB):
    • Listens on port 80, forwards to backend on port 9999
  • Backend:
    • Communicates with:
      • MCP Server: port 1234
      • Elasticsearch: port 9200
      • Neo4j: port 7687

🛠️ Prerequisites

Trong GitHub repo, bạn cần cấu hình các Secrets sau để CI/CD hoạt động:

Secret NameDescription
AWS_ACCESS_KEY_IDAWS Access Key ID used to access AWS API
AWS_SECRET_ACCESS_KEYAWS Secret Access Key
DOCKER_HUB_TOKENToken used to push/pull Docker images from Docker Hub
KEYPAIR_PRIVATEPrivate key (.pem format) used for SSH access to EC2
KEYPAIR_PUBLICCorresponding public key for the EC2 Key Pair
LANGFUSE_PUBLIC_KEYLangfuse Public API Key
LANGFUSE_SECRET_KEYLangfuse Secret API Key
LEQUYNHLE_GITHUB_TOKENGitHub Personal Access Token used to access LLM for Chatbot

🚀 Setup & Deployment

1. Clone Repository

git clone https://github.com/yourusername/agentic_chatbot_cicd.git
cd agentic_chatbot_cicd

2. Initialize Terraform Infrastructure

cd terraform
terraform init
terraform apply

This will: Create VPC, public/private subnets Attach NAT and Internet Gateways Provision EC2 instance Set up S3, ALB

3. Configure GitHub Secrets

Settings → Secrets and variables → Actions → New repository secret

  • Add:
    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
    • DOCKER_HUB_TOKEN ...

4. CI/CD Workflow via GitHub Actions

The provided GitHub Actions workflow will:

    1. Build Docker images
    1. Push to Docker Hub
    1. SSH into EC2 instance
    1. Pull and deploy the containers using docker like docker compose

🧠 Author

Developed and maintained by @quynhbuiofficial

Quick Start

1

Clone the repository

git clone https://github.com/quynhbuiofficial/agentic_chatbot_cicd
2

Install dependencies

cd agentic_chatbot_cicd
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerquynhbuiofficial
Repoagentic_chatbot_cicd
LanguagePython
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation