This repository serves as an example of deploying Valheim on AWS using cdk-game-server.
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.
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.