Skip to main content

AWS EC2 instance manager for Minecraft servers

Project description

PyPI Version Python Version

Requires a Python version of 3.6. Can be installed with pip:

$ pip install ec2mc

A Python console script for managing Minecraft servers hosted on AWS EC2 instances (cloud computing). The script is still in alpha, and currently only supports starting and checking instances that already exist. Commands to start instances and initialize an AWS account are planned.

IAM user credentials must be set before the script can be used:

$ ec2mc configure

Sample credentials (with minimal permissions) are the following:

AWS access key ID: AKIAJSJIRSCFBLUWRG2Q
AWS secret access key: N3zwOS1QanjGNgYO3uQ/ObN0Hjh0R3X27UW2abnq

“File path for Minecraft’s servers.dat” can be left empty. The preceding IAM user credentials have been included to facilitate a basic understanding of what the script does. The instance will turn itself off after 10 minutes of inactivity using crontab.

Full commands to be used are the following (“-r” is the region filter, “-n” is a tag filter):

$ ec2mc server check -r eu-central-1 -n chisels-and-bits-1
$ ec2mc server start -r eu-central-1 -n chisels-and-bits-1

To see how the script updates the Minecraft client’s server list, install Minecraft and add the MC client’s servers.dat path to the config with “ec2mc configure”. The script can’t handle a non-existent/empty server list (yet?), so please add an entry to the Minecraft client’s server list before using the script (gibberish is fine, as long as an entry exists).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ec2mc-0.1.3.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ec2mc-0.1.3-py2-none-any.whl (30.5 kB view details)

Uploaded Python 2

File details

Details for the file ec2mc-0.1.3.tar.gz.

File metadata

  • Download URL: ec2mc-0.1.3.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ec2mc-0.1.3.tar.gz
Algorithm Hash digest
SHA256 16c7bd1e9a589277d8dc1749d1b09241a299d6829312613f91b56bb276f2332e
MD5 8e91c1cc1cdc301776a2d0477bbfff04
BLAKE2b-256 427c1371f0a0afc03972bb7626a59788cbf74c78c269c9bb9d42af943c9b88cd

See more details on using hashes here.

File details

Details for the file ec2mc-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for ec2mc-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 0eb4104a1e984bc78e48420eeb73e835ee13e5210824f4b25bc147c7f12a6d31
MD5 07df0f1190cf1807fc0fb2ae3c828865
BLAKE2b-256 d63148bad0725b9b2ae90dc82fbfc38f51821335329d0bb13f4fcd18c83f971e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page