Giter VIP home page Giter VIP logo

aws-cdk-minecraft's Introduction

Node.js CI npm (scoped) npm bundle size (scoped) Snyk Vulnerabilities for npm scoped package Libraries.io dependency status for latest release, scoped npm package NPM

Minecraft CDK constructs

This library provides CDK constructs that can be used to fully automate a Minecraft server running on ECS.

This library supports both Java and Bedrock servers, using docker images from the following projects:

Features:

  • Cost savings by automatically suspending the Minecraft server task when no one is playing
  • Automatic backups with configurable retention policies
  • Automated modpack installation (for Java Minecraft servers)
  • Centralized monitoring using AWS Cloudwatch logs and metrics

Example

This simple line will deploy a new vanilla Java Minecraft server with default settings, including automatic backups, cost savings, and more.

const world = new JavaWorld(this, props.name, {
    dns: {
        hostName: 'test.example.com',
        hostedZone
    }
});

Features

SFTP

You can enable SFTP access to the filesystem for maintenance activities.

This will add a second container to the ECS task definition that uses this docker image: https://github.com/atmoz/sftp.

Provide a secret when enabling SFTP access with credentials for access over SFTP. The value of the secret should be in the format of username:password. See the https://github.com/atmoz/sftp for more options.

Example
const parameter = StringParameter.fromStringParameterName(world, 'UsersParameter', 'users');
const world = new JavaWorld(this, props.name, {
    dns: {
        hostName: 'test.example.com',
        hostedZone
    }
});
world.enableSftp(Secret.fromSsmParameter(parameter));

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.