Skip to content

This repository using discord bot with slash command to control EC2 Instance to run Palworld through AWS Lambda

Notifications You must be signed in to change notification settings

hychanbn1009/ec2-palworld-server-discord-bot-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EC2-Palworld-server-Discord-bot-controller

This repository using discord bot with slash command to control EC2 Instance to run Palworld through AWS Lambda.

Project Description

  1. User send slash commands to discord bot
  2. Discord bot send POST event to AWS API Gateway
  3. API Gateway invoke AWS Lambda
  4. Lambda send command to EC2 Instance through System manager client
  5. Get Response and reply by Discord Bot concept drawio

Table of Contents

Requirements

  • NodeJS
  • Typescript
  • ESBuild
  • AWS account with permission (For Lambda and EC2 deployment)
  • Discord Developer Account (For Discord Bot deployment)

AWS Setup

EC2 Setup

  • Search EC2 in AWS console
  • Launch an EC2 instance with Amazon Linux (AMI: Amazon Linux 2 AMI)
  • Architecture: 64-bit (x86)
  • Instance type: depends on your budget and user. On-Demand Pricing Reference
  • create a new key pair / use your own key pair
  • setup security group rules (ssh in port 22 for your IP & Customer UDP in port 8211 for 0.0.0.0/0)
  • Storage: 20GiB for gp3
  • Launch Instance

Discord Bot Setup

Preparing

Usage

git clone https://github.com/hychanbn1009/ec2-palworld-server-discord-bot-controller.git

Reference

Preparing

About

This repository using discord bot with slash command to control EC2 Instance to run Palworld through AWS Lambda

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published