Skip to main content

GitHub Workflow Status GitHub license npm PyPI - Downloads

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

References

Examples

The construct is published to both npm and PyPI.

TypeScript

new ValheimWorld(stack, 'ValheimWorld', {
  cpu: 2048,
  memoryLimitMiB: 4096,
  schedules: [{
    start: { hour: '12', weekDay: '1-5' },
    stop: { hour: '1', weekDay: '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

Metadata

Release files for cdk-valheim 0.0.26

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdk-valheim 0.0.26
File Size Uploaded Provenance Actions
cdk-valheim-0.0.26.tar.gz 388.8 kB Without provenance Details for cdk-valheim-0.0.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdk-valheim 0.0.26
File Interpreter ABI Platform Actions
cdk_valheim-0.0.26-py3-none-any.whl Python 3 none any Details for cdk_valheim-0.0.26-py3-none-any.whl

Total release size: 775.9 kB

Release files / cdk-valheim-0.0.26.tar.gz

Download URL cdk-valheim-0.0.26.tar.gz
Size 388.8 kB
Tags Source
SHA-256 checksum
How to use checksums
98955d54456fa3c691713c707c7ee6127c3a9503bd70fa8a26286c8e078b7dc8
BLAKE2b-256 checksum
How to use checksums
0a49313b4b51aac1fda459a16ebef2566c5e92f3c495b76e9eb8d9993cca7468
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / cdk_valheim-0.0.26-py3-none-any.whl

Download URL cdk_valheim-0.0.26-py3-none-any.whl
Size 387.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d016e1252565ca37b9cafa0fca0a4897a2636199fca8cc7bb126e13bc346c15
BLAKE2b-256 checksum
How to use checksums
4fcec6e754e4f70b7833d0461d6268d52f7255e30b4dcc86f60adc6ff4f5ce26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for cdk-valheim 0.0.26

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page