cdk-valheim
Project description
cdk-valheim
A high level CDK construct of Valheim dedicated server.
Features
- Fargate cluster to run a Valheim server, with EFS for persistence (schedulable)
- Hourly AWS Backup with 3 days retention (customizable)
- lloesche/valheim-server as the default container image (replaceable)
See integration test for an example.
API Doc
See API.md
Examples
The construct is published to both npm and PyPI.
- TypeScript
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
ValheimWorld(stack, "ValheimWorld",
cpu=2048,
memory_limit_mi_b=4096,
schedules=[{
"start": {"hour": "12", "week_day": "1-5"},
"stop": {"hour": "1", "week_day": "1-5"}
}],
environment={
"SERVER_NAME": "CDK Valheim",
"WORLD_NAME": "Amazon",
"SERVER_PASS": "fargate",
"BACKUPS": "false"
}
)
- Python
ValheimWorld(
self,
'ValheimWorld',
cpu=2048,
memory_limit_mib=4096,
schedules=[ValheimWorldScalingSchedule(
start=CronOptions(hour='12', week_day='1-5'),
stop=CronOptions(hour='1', week_day='1-5'),
)],
environment={
"SERVER_NAME": 'CDK Valheim',
"WORLD_NAME": 'Amazon',
"SERVER_PASS": 'fargate',
"BACKUPS": 'false',
})
Testing
- Unit test and snapshot test
npx projen test
- Integration test
npx cdk -a "npx ts-node src/integ.valheim.ts" diff
npx cdk -a "npx ts-node src/integ.valheim.ts" deploy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdk-valheim-0.0.14.tar.gz
(67.6 kB
view hashes)
Built Distribution
Close
Hashes for cdk_valheim-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5ddecfa56af1ad19399b8c70950b9930e085bdec6762e66f229852c7f009e0 |
|
MD5 | d36a4f217406e192eab41dc8480e5d77 |
|
BLAKE2b-256 | 0d9c88e2b97ec372b59a896183a17df75bb95abb6a9b3c07d77666a870d81cf2 |