Host Minecraft Server On Aws

How To Run A Minecraft Server On Amazon Ec2

How to setup a Minecraft Server on an Amazon EC2 instance

I originally published this article on This draft is revised for 2014, since Amazon updated their offerings.

This is an easy way to get a Minecraft server running 24 hours a day. It may not be the most cost-effective method – watch your Amazon bills! – but it’s a great way to get familiar with EC2.

You will need some basic Linux ability for this guide.

Scalability And Ease Of Use

In terms of application scalability, there is little to choose between DigitalOcean and AWS. Both can scale an application to billions of requests, no problem. The much bigger difference is in the size of the ecosystem and complementary services, reflecting the differing needs of the two platformsâ customers.

Scaling your application on AWS is relatively straightforward, with numerous complementary technologies that allow your web application to handle massive amounts of traffic and serve a global audience. As your traffic grows, for example, you will need a CDN to handle images and video content delivery. AWS has the Amazon CloudFront service for this purpose.

When you need read replicas for your database, AWS RDS is there with 5 read replicas, with Amazon Aurora offering 15 of them. Amazon Aurora Serverless comes with autoscaling support. As requests and database writes increase, you might need to implement a message queue to take care of asynchronous messages. Amazon Simple Queue Service provides a scalable message queue that grows with your application. To cover your caching needs, you can use Amazon Elastic Cache. Your options for scaling on AWS technology are nearly endless, all the way to using to dynamically add more compute capacity to meet escalating demand for your applications.

Craftbukkit Minecraft Powered By Bitnami

BitRock Inc.Latest Version:1.7.9R0.3-0-r01 on Ubuntu 14.04.1

Bitnami CraftBukkit Minecraft is a pre-configured, ready to run image for running CraftBukkit Minecraft on Amazon EC2. CraftBukkit is an up-and-coming Minecraft Server mod that will completely change how running and modifying a Minecraft server is done making managing and creating servers ea

Bitnami CraftBukkit Minecraft is a pre-configured, ready to run image for running CraftBukkit Minecraft on Amazon EC2. CraftBukkit is an up-and-coming Minecraft Server mod that will completely change how running and modifying a Minecraft server is done making managing and creating servers ea

Read Also: Minecraft Redeem Codes

Choosing Between Azure And Aws For Minecraft

Having run Minecraft servers at home so my daughter and I can play together, the inevitable question of Can I play with my friends was voiced. I didnt want to put any of my computers on the web or, if Im honest, open any ports on my router, so Cloud computing was the way to go.

I started out with because, well I cant really remember now, but it was probably the prospect of a years free usage. That doesnt entirely work out because the basic servers arent really up for running Minecraft but it was a start. And it was fun talking seriously about cloud services with Amazon at a trade show using my Minecraft experiences. Scalability yup I know that as the first server wasnt up to Minecraft and Mumble.

Then Microsoft had a content marketing win by offering a free ebook on Azure. Im a sucker for free stuff so I downloaded it the phone and started reading while I was waiting for BHS to cook the office bacon oreder yesterday. Im equally a sucker for trying something new so come the evening I signed in to Azure and gave it a go.

Ive got a reasonable server set up with AWS but was hoping to get an Attack of the B-Team server running as some friends had been interested in the Galacticraft plugin and it seemed the easiest way to get that running. Its a lot more demanding than a standard Minecraft server the batch file starts it with 3Gb of RAM rather than the 1Gb I normally start a server with.

Run The Game Server And Double Check That The Ports Are Open

Set up a Minecraft server on AWS EC2

To run the Minecraft Java Edition server use this from the command line or terminal :

java -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -jar server.jar nogui

Should you want to start the server with its graphical user interface you can leave out the “nogui” part. You can create a batch file or script for convenience.

To run the Minecraft Bedrock Edition server:

  • on Windows, just double click on the bedrock_server.exe executable.
  • on Linux, use LD_LIBRARY_PATH=. ./bedrock_server from the directory where the server was installed. The server doesn’t need to be run as root.

If you are using Minecraft Java Edition, once the server is running, you can check that the ports needed for your game server are open and listening. But, ensure that the game server is running before testing:

If you are using Minecraft Bedrock Edition:

Testing fromLinux
Within the Azure Virtual MachineRun netstat -an | find “19132” from the command line and validate that the port is shownRun sudo netstat -ntlp | grep 19132 from the terminal

Read Also: Minecraft Nintendo Switch Digital Code Free

Quickly Bootstrapping A Minecraft Server In Aws

In this post, we are going to go over how I deployed a minecraft server running inside a docker container in a EC2 instance on AWS.

I used to play minecraft earlier in life and this week my younger brother told me he was playing online with his friends, this got me feeling nostalgic and so I decided to try to set up my own server just for the lolz.

Edit The Server Endpoint

On the AWS Transfer Family console, you can modify the server endpoint type and custom hostname.

To edit the server endpoint details

  • On the Server details page, chooseEdit next to Endpoint details.

  • On the Edit endpoint configuration page, forEndpoint type, choose one of the following:

  • Public makes your server accessible over the internet.

  • VPC makes your server accessible in your virtual private cloud . For information about VPC, seeCreate a server in a virtual private cloud.

  • For Custom hostname, choose one of the following:

  • None if you don’t want to use a custom domain.

    You get a server hostname provided by AWS Transfer Family. The server hostname takes the

  • Amazon Route 53 DNS alias to use a DNS alias automatically created for you in Route 53.

  • Other DNS to use a hostname that you already own in an external DNS service.

  • Choosing Amazon Route 53 DNS alias or Other DNS specifies the name resolution method to associate with your server’s endpoint.

    For example, your custom domain might A custom hostname uses a DNS name that you provide and that a DNS service can resolve. You can use Route 53 as your DNS resolver, or use your own DNS service provider. To learn how AWS Transfer Family uses Route 53 to route traffic from your custom domain to the server endpoint, see Working with custom hostnames.

  • Choose Save. You are returned to the Server details page.

  • Don’t Miss: Minecraft Pe How To Get Skins

    A Final Note And Some More Resources

    I would like to just take a quick moment to thank SkySilk Cloud Services for giving me the opportunity to be a guest author on their blog and write about how to host a Minecraft server. Additionally, Id like to thank SkySilk for continuing to make great strides, and in doing so, providing fantastic support and service. Here are some additional resources to help in learning how to set up a Minecraft server on Ubuntu.

    Vps Or Dedicated Hosting

    Setup your own dedicated MineCraft Server Using Amazon AWS Free Tier

    This tutorial will help you install a Minecraft Server on an VPS or Dedicated server.

    Host your own Minecraft server on a Bluehost VPS Hosting service, to get started today.

    You will need to make sure that you have Sudo Access enabled. If you have not enabled sudo access please see Enabling Sudo Access to learn how to do so. You will also need to have Java 1.7 or newer installed. If you have not installed Jave on your account, please see Installing Java.

    Read Also: Code Org Minecraft Hero’s Journey

    Allow Access To Efs From Within The Vpc

    Our EFS by default is assigned the default security group, which allows connections from all members of that default security group. Our ECS Service will not be using the default security group however, because we are opening Minecraft to the public internet. So, we need to add EFS access to the default security group .

    Open the VPC console, find Security Groups on the left hand side. Select the default security group in the list, then click on Edit inbound rules. Add a new rule, select NFS in the Type list and put your VPC IPv4 CIDR from your checklist as the source. After clicking Save rules double check that it added successfully by viewing it in the Security Groups detail pane.

    Let’s Create A Server

    This is really straightforward.

  • Sign up for an account at and give them a payment method. There is no fixed charge for EC2 servers: you pay for what you use.
  • If you’re sure you want to keep the server for a long time, a Reserved instance works out way cheaper.
  • Navigate to the Amazon EC2 tab. This may take a minute or two to become active if you’ve just signed up. You will see that you have no instances, and the page will prompt you to Launch Instance.
  • Hit the Launch Instance button to see a list of the possible server types. We’re going to choose the first option on the list, Amazon Linux AMI .
  • This image uses EBS, which is independent storage. The alternative is ‘Instance Store’ which is less flexible.
  • Now we Choose an Instance Type: we want a t2.small. To move on, hit Next: Configure Instance Details.
  • Micro instances are cheap, but they have some pretty crazy CPU throttling. Not recommended.
  • On the Configure Instance Details page, we don’t need to mess with anything. Hit Next: Add Storage.
  • Under Volume Type, you can choose between Magnetic and General Purpose . Storage is pretty cheap so go for General Purpose . Now Next: Tag instance.
  • Notice you can choose the space available here. Default 8GB is fine.
  • Tag instance: we can ignore this since we only have one server to worry about. Hit Next: Configure Security Group.
  • Let’s Create a new security group and go with:
  • Security group name: minecraft-security
  • Description: Ports for Minecraft
  • Custom TCP Rule
  • Port Range: 25565
  • Read Also: How Can I Get Minecraft For Free On Pc

    Operating Your Minecraft Server

    Note: generally, the Minecraft server will automatically start up, when you start your EC2 instance. For manually operating your server you need to use a ssh tunnel.

    • Connect to your EC2 instance using ssh
    • Starting your Minecraft server:
    • $ wget -O paper-1.15.2-latest.jar$ cp paper-1.15.2-latest.jar paper-current.jar
    • Backing up your Minecraft server data:
    • $ aws s3 cp --recursive /minecraft/mc-server s3://< s3-bucket-name> /backup/$/mc-server

    Data Centers And Product Inventory

    How to setup a Minecraft Server on an Amazon EC2 instance ...

    As one would expect for the world leader in cloud services, AWS operates the largest and most extensive network of cloud data centers worldwide. The cloud provider has continued to introduce new regions to support the needs of its global customer base. Now, AWS has the following regions and locations:

    • Asia Pacific: Mumbai, Seoul, Singapore, Sydney, Tokyo
    • Canada: Central
    • NYC1, NYC2, NYC3: New York City, United States
    • SFO1, SFO2: San Francisco, United States
    • SGP1: Singapore

    An important distinction here is that AWS now offers servers in the China region, AWS China and AWS China ,which, due to Chinese regulations, are offered by AWSâs Chinese partners. If you are operating products to serve the Chinese market, this may make a crucial difference in which service you go with.

    In terms of service offerings and products, AWS is the 800 pound gorilla of the cloud computing space. It has a product suite as extensive as any in the space, rivalled only by Microsoft Azure, but then, DigitalOcean has been quietly expanding its own suite of products. However, with DigitalOceanâs strategy being focused more on developers and smaller businesses, they donât actually need to offer the full suite that AWS offers.

    For AWS, these are some of the biggest and most heavily used products, out of all the numerous ones on offer:

    You May Like: Best Vr Headset For Minecraft

    Edit Amazon Cloudwatch Logging

    On the AWS Transfer Family console, you can enable Amazon S3 event logging using Amazon CloudWatch.

    If Transfer Family created a CloudWatch logging IAM role for you when you created a server, the IAM role is called AWSTransferLoggingAccess. You can use it for all your servers.

    To edit the CloudWatch logging IAM role

  • On the Server details page, chooseEdit next to Additional details.

  • On the CloudWatch logging page, do one of the following:

  • If Transfer Family created a CloudWatch logging IAM role for you when you created a server, the IAM role is calledAWSTransferLoggingAccess. Choose it from theLogging role list.

  • If you chose an existing CloudWatch logging IAM role or you didn’t choose a CloudWatch logging IAM role at all when you created this server, choose or modify the CloudWatch logging IAM role from theLogging role list.

  • You can’t view end-user activity in CloudWatch if you don’t specify a logging role.

  • Choose Save. You are returned to the Server details page.

  • Build The Ec2 Instance

    This is the initial part, you must create a new EC2 instance. From the EC2 dashboard, click on Launch Instance and choose the Amazon Linux 2 AMI with the x86 option.

    Next you must choose the Instance Type. I recommend you the t2.small for Minecraft. You will able to change it after the creation.

    For the tag screen I generally provide a Name and a costcenter .

    For the Security Group, it the equivalent of a firewall on EC2 and you must configure which port will be accessible from internet on your server. I add SSH port and the Minecraft port like you see on the following screen:

    Then to start the instance you must select or create a key pair. It’s mandatory and allow then to connect remotely to your EC2 instance. In my case I am using an existing key pair but if you create a new key don’t forget to download on your laptop the private key file.

    Yes my key is named caroline. Why not?

    Then you must connect your instance via SSH, I recommend this guide if you need help. Basically you must run this kind of command:

    The public-ipv4 is available in the instance list:

    You first need java. As newer build of minecraft are running only on Java 17, I recommend to use Corretto :

    sudo rpm --import curl -L -o /etc/yum.repos.d/corretto.repo yum install -y java-17-amazon-corretto-devel.x86_64java --version

    You must have something like:

    Thanks for the research on this java issue )

    sudo adduser minecraft

    You May Like: Minecraft Free Recording Software

    The Cheapest Way To Run Minecraft On Aws

    Wednesday, 15 January 2020

    Summary: By taking advantage of AWS spot instances and only running when you need to, you can have a powerful Minecraft server for as little as a couple dollars per month.

    • When you want to play, go to the server status webpage and launch the server.
    • Wait for it to start up.
    • Connect to the server from Minecraft.
    • After you disconnect, the server will automatically shut down after a period of inactivity.

    This way, you only pay for the time you play . How cheap is it? Based on prices as Im writing this:

    • $0.0324/hr for c5.large instance in us-east-1 .
    • $0.10/GB/month for EBS data storage.
    • $0.09/GB for outbound bandwidth .

    Assuming 4 people play together for 20 hours in the month and the world data is less than 2 GB, that works out to about $1.84. Add in a few more cents for S3, instance EBS, and Lambda, and itll end up being about $2.

    On top of that, you can set up the server any way youd like, since youre running your own Linux box that you can install arbitrary software onto.

    Technically, this involves the following components:

    • Packer build script and various tools that are baked into an AMI .
    • AWS Lambda/API Gateway web page for checking server status and launching the server.
    • A floating EBS volume that contains your world data.

    Since the status web page only charges for computation when someone uses it, then the cost when nobody is playing is just a few cents for storage.

    Edit The Server Identity Provider

    How To Create A Minecraft Server Using Amazon EC2

    On the AWS Transfer Family console, you can edit the details of your identity provider such as the API Gateway URL and invocation role. The identity provider manages user access for authentication and authorization.

    You can’t change a server’s identity provider type after you create the server. To change the identity provider, delete the server and create a new one with the identity provider that you want.

    To edit the server identity provider

  • On the Server details page, chooseEdit next to Identity provider.

  • On the Edit identity provider page, choose one of the following identity provider types:

  • Service managed creates, manages, and stores user identities and keys in AWS Transfer Family.

  • Custom you must provide an Amazon API Gateway URL and an AWS Identity and Access Management role for the service to invoke your Amazon API Gateway URL endpoint. To learn more about working with custom identity providers, see Working with custom identity providers.

  • Choose Save. You are returned to the Server details page.

  • You May Like: How Much Is Minecraft On Switch

    Cheap Minecraft Server In Aws Ec2 With Traefik

    I used my Cheap Traefik EC2 Docker Hosting solution as the base. You can read that article to get access to the CDK resources required to deploy it yourself.

    The cost benefits to using this particular recipe are:

    • EC2 Graviton2 ARM based processor slightly cheaper to run than Intel and AMD. The downside is more limited software choices. You need to make sure you use ARM compatible packages or Docker images.
    • Spot instance this has massive savings over a normal lifecycle EC2 instance. The downside is that it can be terminated at any time with only a couple of minutes of notice. When using these you need to make sure you have good data persistence that is not local to the EC2 instance. I personally use a mounted EFS volume. It is re-attached to a new instance from the autoscaling group if the old instance is terminated.

    If you dont use the CDK solution I mentioned above, then alternatively deploy yourself an EC2 instance. Give it an elastic IP address, set up the Security Group ingress rules accordingly, and get shell access. First thing youll want to install is Docker, then youre pretty much good to go.

    Popular Articles

    Related Stories

    Stay on op - Ge the daily news in your inbox