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.17.tar.gz
(68.2 kB
view hashes)
Built Distribution
Close
Hashes for cdk_valheim-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de5dcb6c42e76482f3c13909cee62b15fbc1f0f7b47c17b30bff13d54148d23 |
|
MD5 | b566822efa6fa7f933561f796b1bca75 |
|
BLAKE2b-256 | 17802d5fe3e981ba6dc87698e16b0fde62ccea2cbc56c8552ac094f3c3e90b53 |