Our great sponsors
-
terraform-cdk
Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
valheim-server-docker
Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
terraform cdk is just a way (=synthetize) to get some terraform json document describing your infra. https://github.com/hashicorp/terraform-cdk/blob/main/docs/working-with-cdk-for-terraform/synthesizing-config.md It can be nice if you want to stay away from HCL or if you have large deployments (not the case here), as HCL is quite poor regarding DRY pattern. However, HCL still shines for clarity and "self documented" infrastructure as the fact that it is a declarative language is easier to understand what you are trying to deploy.
This is the cdk-valheim construct that I use in this project.
The ECS Cluster that runs the actual docker container for the Valheim server. By default, the image used is lloesche/valheim-server.
I got the idea to use flask from this interaction examples on DIscord's GitHub: https://github.com/discord/discord-interactions-python/blob/main/examples/flask_app.py
https://github.com/subflow22/valheim/blob/main/terraform/