FAQĭo I need a VPC, or Subnets, or other networking config in AWS? Failing that just go to the EC2 console, and give them the new public IP address of your instance. Note that it may take a few minutes for the new IP to propagate to your friends computers. This way, you can have a custom domain name such as "". Whenever your instance is launched, a Lambda function fires off and creates / updates the record of your choosing. You'll need to provide both of the parameters under the DNS Configuration (Optional) section. If you're prepared to register a domain name (maybe you've already got one) and create a Route 53 hosted zone, this problem is easily fixed. This can be a pain to keep dishing out to your friends. Custom Domain NameĮvery time your Minecraft server starts it'll have a new public IP address. Otherwise, update your existing stack and provide these parameters. If you're creating a new Minecraft deployment, provide these parameters when creating the stack. You'll need this to connect to the instance for additional setup. You'll need to use this to connect to the instance for additional setup. Create a Key Pair (Services > EC2 > Key Pairs).You'll need to create a Key Pair in AWS, find your public IP address, and then provide both of the parameters in the Remote Access (SSH) Configuration (Optional) section. you), preventing malicious users from trying to break in (or worse - succeeeding). For security, SSH should be locked down to a known IP address (i.e. If you know what you're doing, you might want to SSH onto the Linux instance to see what's going on / debug / make improvements. Refer to Custom Domain Name within Optional Features for a better solution.Īt this point you should really configure remote access as per the below section, so that you can access the server and modify server.properties (e.g. Bonus points - Public IP addresses are ugly. No need to provide a port number, we're using Minecraft's default. You should be able to fire up Minecraft, and join via this IP address. Go to the EC2 dashboard in the AWS console and you should see a Minecraft server running. Wait until CloudFormation reports the stack status as CREATE_COMPLETE. Continue through the rest of the deployment.Īll things going well, your Minecraft server should be running in five minutes or so. There should be no need to touch any other parameters unless you have reason to do so. Refer to the Remote Access section below. You'll need a Key Pair and your Public IP address if you want to access the instance remotely via SSH (recommended). Click Next to proceed through the CloudFormation deployment, provide parameters on the following page.Ensure you've selected a suitable AWS Region (closest to you) via the selector at the top right.Click the above link, you'll need to log into your AWS account if you haven't already.VPC - The template deploys a very basic VPC, purely for use by the Minecraft server.Auto Scaling - An Auto Scaling Group is used to maintain a single instance via spot pricing.None of this is stored on the server itself, as it may terminate at any time. EFS - Elastic File System is used to store Minecraft config, save games, mods etc.If demand increases and someone else puts in a higher bid than you, your instance will terminate in a matter of minutes.Ī few notes on the services we're using. You're effectively participating in an auction to get a cheap instance. What is spot pricing you might ask? It's a way to save up to 90% on regular "on demand" pricing in AWS. The CloudFormation template is configured to launch this ephemeral instance using spot pricing. all of this state is stored on a network file system (Elastic File System - EFS). The ephemeral instance does not store any saves, mods, Minecraft config, data etc. Within this ECS Cluster, an ECS Service is configured to run a Minecraft Docker image. In a nutshell, the CloudFormation template launches an ephemeral instance which joins itself to an Elastic Container Service (ECS) Cluster. The solution builds upon the itzg/docker-minecraft-server Docker image, so generously curated by the contributors (thank you!). Basic knowledge of Linux administration (no more than what would be required to just use the itzg/docker-minecraft-server Docker image).Īll of this is shamelessly copied and tweaked from the Factorio Spot Pricing template.A basic understanding of Amazon Web Services, specifically CloudFormation.As the solution leverages "Spot Pricing", the server should cost less than a cent an hour to run, and you can even turn it off when you and your friends aren't playing - saving even more money. The template contained within this repository can be used to deploy a Minecraft server to Amazon Web Services (AWS) in minutes. Complete Minecraft Server Deployment (CloudFormation)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |