![]() Check that your policy is attached to the role.ĭouble check that everything is set up correctly:.Give your role a name and optionally a description.Select your previously created Policy to attach it to your IAM Role.Give your policy a name and optionally a description.Select the JSON editor tab in the UI and paste the following configuration and replace with your S3 bucket's name:.Don't forget to change it later if you intend to play on your server.Īn IAM (Identity and Access Management) role is required for upcoming configuration steps: In further config/scripts use this rvice file instead of the mentioned rvice. Note: if you decided to do the initial setup/PoC with the free-tier t2.micro instance, you should create a copy of the service file named rvice and adjust the Java heap flags accordingly ( -Xms512M -Xmx512M). Create a file named rvice with following content and upload it to the setup folder:ĮxecStart=/usr/bin/java -Xms6G -Xm圆G -jar paper-current.jar -nogui.In this example the mc-server.jar file is named paper-current.jar. Upload your Minecraft server files into the folder mc-server (using the S3 web interface or the aws cli).Create three directories backup, mc-server and setup.Give it a globally unique name (will be needed later for the policy).Also make sure that all services you create in the following steps are in the same Availability Zone (AZ) or subnet (e.g. Otherwise things might not work or generate extra cost for cross-region traffic. All services need to be in the same region. Log on to the AWS console and choose your region. Once everything works as expected, you can easily switch to the a1.xlarge instance. Note: for setup, you can use the t2.micro free tier instance, to not spend money during setup. free tier) for server cold storage and backup purpose EC2 instance: a1.xlarge (8GB RAM, 4 vCPU, EBS storage attachable).Knowledge about configuring and running a Minecraft server (will not be covered in this blog post).Īll configuration files mentioned in this guide can be found on GitHub.Some basic unix command line knowledge.A terminal (Windows users can use git-bash or any other.**numbers: price per hour for running the server includes cost for a a1.xlarge EC2 instance and free tier contingent of EBS and S3 storage. *pricing: when you compare prices be aware that AWS pricelist shows you net prices. With the a1.xlarge instance we usually ended up with total costs of $1.60/month (which is 15h playing time + some cents for API calls to download plugins or backup the Minecraft server to the S3 bucket).Īnd remember: the first 12 months you may use the AWS free contingent: 5GB/month S3 storage, 30GB/month EBS volume and a t2.micro EC2 instance as well as a few thousand web requests. For us, being usually 3 or 4 players, 4 vCPU cores gave us a nice performance boost: even if we were in different areas of the world or found many mobs around us, we experienced smooth gameplay. You can try out if other instance types are also sufficient for your server, changing the break even point for you ( e.g. Running the Minecraft server on AWS can save you money if you do not play (or keep the EC2 instance running!) more than 60h per month on a a1.xlarge instance. Note: pricing differs per region, select the correct one in the table.įor a rough calculation the following numbers** will suffice:ĪWS: $11.64ct/hour (~ 0.10€) for an a1.xlarge EC2 instance (8GB RAM, 4 vCPU) on region eu-central-1 (Frankfurt)Ĭonventional hosting provider: 6.00€/month for 8GB RAM, 4 vCPU and 100GB SSD storage.īreak Even Point: 6.00€/10ct = 600ct/10ct = ~60h/month I recommend to read this guide to the end before starting with the setup in parallel.Ĭosts and metrics for each AWS service can be looked up at AWS EC2 On-demand Pricing *. An instance running 24/7 can easily generate a bill of $40/mo.or more and AWS will charge your credit card without any limit! It is your responsibility to check the actual pricing of AWS services and stop your EC2 instance if it should not run. This revamped version contains updated code snippets, which will work for the currently latest Minecraft release (1.18 Caves & Cliffs Part II). The old step-by-step guide is still valid and basically working. Switch to a different EC2 instance family for a better performance.This blog post is an updated version of the post I published in 2020.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |