/cdk-valheim-server

An AWS CDK construct library to run a Valheim dedicated server on AWS Fargate

Primary LanguageJavaScriptApache License 2.0Apache-2.0

CDK Valheim Server

This repository serves as an example of deploying Valheim on AWS using cdk-game-server.

Deploying

You will need NodeJS 16.x or better installed.

To deploy your own Valheim server on AWS simply clone this repo, make any changes you'd like, and deploy it.

git clone https://github.com/raykrueger/cdk-valheim-server.git
cd cdk-valheim-server
npx cdk deploy

This will deploy Vaheim to ECS Fargate Spot. It will automatically shutdown if idle. It can be scaled up in the ECS UI, via the AWS CLI, or by enabling the Discord bot.

History

This repository used to host a cdk-valheim-server CDK Library. That library was very expensive when running, and was very hardcoded to Valheim. All of the functionality has been extracted to cdk-game-server and improved to be as cheap as possible.