This repository using discord bot with slash command to control EC2 Instance to run Palworld through AWS Lambda.
- User send slash commands to discord bot
- Discord bot send POST event to AWS API Gateway
- API Gateway invoke AWS Lambda
- Lambda send command to EC2 Instance through System manager client
- Get Response and reply by Discord Bot
- EC2-Palworld-server-Discord-bot-controller
- Project Description
- Table of Contents
- Requirements
- AWS Setup
- Discord Bot Setup
- Usage
- Reference
- NodeJS
- Typescript
- ESBuild
- AWS account with permission (For Lambda and EC2 deployment)
- Discord Developer Account (For Discord Bot deployment)
- 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
Preparing
git clone https://github.com/hychanbn1009/ec2-palworld-server-discord-bot-controller.git
Preparing