AWS Builder Center
How I Built a Minecraft Bedrock Server on AWS

How I Built a Minecraft Bedrock Server on AWS

How I built a private Minecraft Bedrock server on AWS using EC2, EBS, Systems Manager, Crafty Controller, and a simple start-and-stop workflow.

Automation Builder
I wanted to host my own private Minecraft Bedrock Dedicated Server instead of relying on a free third-party hosting services.

But I also wanted the project to teach me something useful.

So instead of treating it as just a Minecraft server, I used it as an opportunity to learn more about:
  • Amazon EC2
  • Amazon EBS
  • IAM
  • AWS Systems Manager
  • Security groups
  • Linux server administration
  • Cost management
  • Basic automation
My goal was simple:
Start the server when I want to play, stop it afterward, and keep the Minecraft world safely stored between sessions.
What started as a small game-server project ended up becoming one of my more practical AWS learning experiences.

1. Planning the Architecture

The first decision was where to run the server.
I chose Amazon EC2 because I wanted full control over the operating system, Minecraft files, networking, and server-management software.
My final setup used:
AWS Region
Asia Pacific (Singapore)

|
v

Amazon EC2
m7i-flex.large
2 vCPU / 8 GiB RAM
Ubuntu Server 24.04 LTS

|
v

30 GiB gp3 EBS
Encrypted persistent storage

|
+-------------------+
| |
v v
Minecraft Bedrock Crafty Controller
Dedicated Server Web Management
I selected the Singapore AWS Region ( ap-southeast-1 ) because it is geographically close to the Philippines.
I did not perform a proper latency benchmark, so I cannot claim any exact multiplayer latency results. My goal was simply to choose a nearby AWS Region that made sense for the project.

2. Choosing the EC2 Instance

I initially considered a smaller server, but I eventually used:
Instance type: m7i-flex.large
vCPUs: 2
Memory: 8 GiB
Operating system: Ubuntu Server 24.04 LTS
Architecture: x86_64
Purchasing model: On-Demand
The additional memory gave me more room for Minecraft, Crafty Controller, and the operating system without trying to optimize everything around a very small instance.
The most important decision, though, was this:
I would not run it 24/7.
My workflow was designed around starting and stopping EC2:
Start EC2
↓
Start Minecraft
↓
Play
↓
Stop Minecraft cleanly
↓
Stop EC2
When the EC2 instance is stopped, I am not paying for running instance compute.
The storage remains, however, because the Minecraft world still needs somewhere to live.
That difference between compute lifecycle and persistent storage became one of the first useful AWS lessons from this project.

3. Making the Minecraft World Persistent

For storage, I used a:
30 GiB gp3 Amazon EBS volume
I also enabled EBS encryption.
The volume was configured so it would not automatically disappear if the EC2 instance were terminated.
That matters because a Minecraft world contains data that must survive instance stops and starts.
Stopping EC2 does not delete the EBS volume.
The basic idea is:
EC2 running
|
v
Minecraft writes world data
|
v
Amazon EBS
|
v
EC2 stopped

World files remain stored
One thing I learned here is that persistent storage and backups are not the same thing.
An EBS volume surviving an EC2 stop is useful, but if something happens to that volume, having another copy of the world is still important.

4. Setting Up the Network

The instance used the default AWS VPC environment with internet connectivity.
Minecraft Bedrock normally uses UDP port 19132, so I created an EC2 security group with inbound access for that game traffic.
The security group was named:
minecraft-bedrock-sg
The important thing was deciding what not to expose.
I did not publicly open:
SSH
TCP 22

Crafty Controller
TCP 8443
I wanted Minecraft itself to be reachable, but I did not want my server-administration interfaces exposed directly to the internet.
During later troubleshooting, I also tested and investigated additional networking behavior related to newer Bedrock networking, but I avoided randomly opening large ranges of ports without evidence that they were required.

5. Managing the Server Without Public SSH

This became one of my favorite parts of the project.
Instead of exposing SSH port  22 , I used AWS Systems Manager Session Manager.
I attached an IAM role to the EC2 instance with:
AmazonSSMManagedInstanceCore
That allowed me to open a shell through Systems Manager without creating a publicly reachable SSH endpoint.
So my management path became:
My Computer
|
v
AWS Console / AWS CLI
|
v
Systems Manager
|
v
EC2 Instance
This gave me browser-based or CLI-based access to Ubuntu while keeping SSH closed to the public internet.
It also gave me practical experience with something I had mostly learned about conceptually before: IAM permissions actually controlling how infrastructure can be managed.

6. Installing Minecraft Bedrock Dedicated Server

Once the AWS infrastructure was ready, I installed the official Linux version of Minecraft Bedrock Dedicated Server.
Some of the important settings included:
gamemode=survival
max-players=2
online-mode=true
allow-list=true
server-port=19132
I kept Microsoft/Xbox authentication enabled and also used the Minecraft allowlist.
That meant only approved players should be able to join the server.
After installation, the server successfully launched.
The world database existed on disk, the world directory opened correctly, and Bedrock displayed its normal startup output.
I was also able to stop the server gracefully.
One successful shutdown produced:
Quit correctly
That was an important milestone.
It proved that:
Bedrock executable ✓
Minecraft world ✓
World database ✓
Server startup ✓
Graceful shutdown ✓
But there was another lesson waiting for me:
A server running successfully does not automatically mean it is reachable from the internet.

7. Adding Crafty Controller

I did not want to manage Minecraft entirely through terminal commands.
I wanted something closer to the experience of a Minecraft hosting panel.
So I installed Crafty Controller on the EC2 instance.
Crafty provides a browser-based interface for things like:
  • Starting and stopping the Minecraft server
  • Viewing the console
  • Viewing logs
  • Managing files
  • Editing configuration
  • Managing backups
  • Monitoring the server
Crafty itself listens on:
HTTPS
Port 8443
But I deliberately did not expose port  8443  through the AWS security group.
That created a new challenge:
How do I access a private web dashboard running inside EC2 without making it public?
Before solving that, I ran into another issue.
Minecraft was installed on the server, but Crafty did not automatically recognize it.
The server files existed, but Crafty's internal server registry had no Minecraft server registered.
So I had to import the existing Bedrock installation into Crafty.
My process was:
  1. Check available disk space.
  1. Preserve the original Bedrock installation.
  1. Verify that I had a world backup.
  1. Create a ZIP archive of the server files.
  1. Import the ZIP into Crafty.
  1. Verify the imported files.
  1. Register the Minecraft server.
  1. Configure the executable and startup command.
  1. Test Crafty's start and stop controls.
The import contained roughly 3,393 files.
I also hit an HTTP  400  error during the first import attempt because one configuration field expected an integer instead of text.
After correcting the input, Crafty successfully registered and managed the server.
That taught me another useful lesson:
Installing an application and registering it inside a management system are two different things.

8. Accessing Crafty Without Exposing It Publicly

This was probably one of the most satisfying parts of the project.
I used AWS Systems Manager port forwarding.
Instead of opening Crafty to the internet, I forwarded a local port on my Windows computer to Crafty's private port inside EC2.
The mapping looked like this:
My Windows PC

localhost:18443
|
| Systems Manager tunnel
|
v

EC2 Instance

localhost:8443
|
v

Crafty Controller
The AWS Systems Manager document I used was:
AWS-StartPortForwardingSession
Once the tunnel was running, I could open:
https://localhost:18443
in my browser.
That address only works locally on my computer while the SSM tunnel is active.
Crafty was never publicly exposed on port  8443 .

9. The PowerShell Error That Nearly Fooled Me

Setting up the tunnel was not completely smooth.
At one point, Systems Manager returned a session ID, so I assumed the port forwarding was working.
It wasn't.
I eventually learned that:
Getting an SSM session ID does not prove that the local port is actually listening.
The real test was whether Windows had successfully opened the local port.
I used:
Test-NetConnection 127.0.0.1 -Port 18443
There was also an AWS CLI issue.
My original PowerShell command passed the SSM parameters in JSON form, but Windows PowerShell did not preserve the argument correctly.
AWS CLI returned:
ParamValidation: Invalid JSON
The solution was surprisingly simple.
Instead of JSON, I used AWS CLI shorthand:
--parameters 'portNumber=8443,localPortNumber=18443'
After that, the Session Manager plugin reported that local port  18443  was open.
I tested it again, opened Microsoft Edge, and visited:
https://localhost:18443
The Crafty login page appeared.
That moment was probably one of the most satisfying milestones in the whole build.

10. Making Daily Management Easier

By this point, I had several AWS commands that I would need every time I used the server.
I did not want to remember all of them.
So I created a reusable PowerShell script:
MinecraftServer.ps1
It supports four basic actions:
Status
Start
Tunnel
Stop
For example:
.\MinecraftServer.ps1 -Action Status
checks the server state.
To start EC2:
.\MinecraftServer.ps1 -Action Start
The script asks for confirmation before starting the instance.
To create the private Crafty tunnel:
.\MinecraftServer.ps1 -Action Tunnel
Then I open:
https://localhost:18443
and manage Minecraft through Crafty.
When I am finished, I stop Minecraft through Crafty first.
After confirming that Bedrock has shut down correctly, I can stop EC2.
The important part is the order:
Stop Minecraft cleanly
↓
Confirm shutdown
↓
Stop EC2
Stopping EC2 immediately while Minecraft is writing world data is not a shutdown process I want to rely on.
The PowerShell script helps with AWS lifecycle management, but it does not magically prove that the Minecraft world saved successfully.
That still needs to be verified.

11. Keeping AWS Permissions Limited

I also created a restricted IAM identity for normal server management.
Its job was intentionally limited.
It could handle things such as:
  • Checking the Minecraft server's state
  • Starting the designated EC2 instance
  • Stopping the designated EC2 instance
  • Starting the approved SSM port-forwarding session
It could not perform broad AWS administration.
For example, I did not simply grant it AdministratorAccess because troubleshooting was easier that way.
That ended up making some debugging harder, but I think that was actually another useful AWS lesson.
Least privilege sometimes creates inconvenience.
That does not mean the solution is to remove the security boundary.
Instead, I separated:
Routine operations
|
v
Restricted IAM permissions

Privileged troubleshooting
|
v
Authorized administrative identity
That is a much better pattern than giving everyday automation unrestricted control over an AWS account.

12. Cost Management

Another reason I built the server around EC2 start and stop was cost.
During the project, my recorded estimate for the  m7i-flex.large  instance plus its public IPv4 address was approximately:
$0.1247 per running hour
The retained 30 GiB gp3 EBS volume was approximately:
$2.88 per month
Those were estimates observed during my build and should not be treated as current AWS pricing.
AWS pricing can change, and additional costs such as data transfer may apply.
But the design principle remains useful.
If I only want the Minecraft server for a few hours, I do not need to run the EC2 instance all day.
During testing, some sessions only cost a few cents because the instance was started, tested, and stopped again.
That made me realize that cost management is not something you do after building cloud infrastructure.
The architecture itself affects the bill.

13. The Networking Problem I Didn't Fully Solve

This is the part I do not want to pretend went perfectly.
The AWS infrastructure worked.
Minecraft Bedrock successfully loaded the world.
Crafty successfully managed the Minecraft process.
The private Systems Manager tunnel worked.
I successfully opened the Crafty dashboard from Windows.
But during the last recorded tests, an external Bedrock client still could not successfully join the world.
I encountered errors including:
Door / InitialConnection-83
NetherNet:2225
The client and server were also running slightly different Bedrock versions during testing.
Newer Bedrock Dedicated Server builds were using NetherNet transport, which made the networking investigation more complicated than simply opening UDP  19132 .
I investigated several possibilities:
  • Client/server version compatibility
  • Public and private AWS IPv4 translation
  • NetherNet address negotiation
  • UDP port mapping
  • Crafty monitoring compatibility
But I did not reach a confirmed root cause.
That means I cannot honestly say:
"Follow these steps and your Minecraft client will definitely connect."
What I can say is that the AWS infrastructure, Minecraft server process, persistent world, private administration environment, and lifecycle management were successfully built.
The final external gameplay connection remained a work in progress.

14. What I Learned

This project taught me much more than how to install Minecraft on Linux.

EC2

I learned how instance size, lifecycle state, networking, and pricing affect a real application.

EBS

I learned why persistent storage matters when compute is temporary.

IAM

I got practical experience with instance roles and least-privilege user permissions.

Systems Manager

I learned that I can manage an EC2 server and forward local ports without publicly exposing SSH or an admin dashboard.

Security Groups

I saw the difference between allowing only required application traffic and exposing administration interfaces unnecessarily.

Linux

I worked directly with server processes, files, logs, ports, and configuration.

Automation

The PowerShell script made starting, tunneling, checking, and stopping the server easier to repeat.

Troubleshooting

Probably the biggest lesson was learning to test every layer independently.
Is EC2 running?
↓
Is the operating system healthy?
↓
Is Minecraft running?
↓
Did the world load?
↓
Is Crafty working?
↓
Is the local tunnel working?
↓
Is the public game endpoint reachable?
↓
Can the actual client join?
A success at one layer does not automatically prove that the next layer works.
That became extremely obvious during this project.

What I Would Improve Next

There are still several things I want to improve:
  • Finish troubleshooting the external Bedrock connection.
  • Verify real multiplayer gameplay.
  • Create a verified off-instance world backup.
  • Test restoring the world from backup.
  • Improve handling of the changing public IPv4 address.
  • Make startup and shutdown even easier.
  • Explore supported Bedrock add-ons.
  • Automate more of the safe server lifecycle.
The auto-assigned EC2 public IPv4 can change after a stop/start cycle, so stable addressing or automatic IP discovery would also make the server easier to use.

Final Thoughts

I originally started this project because I wanted my own private Minecraft Bedrock server.
But Minecraft quickly became just the application sitting on top of a much larger AWS learning project.
I ended up working with:
EC2
EBS
IAM
Systems Manager
Security Groups
Linux
Networking
PowerShell
Backups
Cost Management
And perhaps the biggest lesson was this:
Getting a server process running is only one part of building a reliable service.
You still have to think about storage, permissions, networking, administration, security, cost, backups, and the actual experience of the person trying to use it.
The project is still a work in progress, but that is also what made it useful.
Instead of following a tutorial where everything works immediately, I had to troubleshoot real problems and understand what each AWS service was actually doing.
For me, that made the project a much better way to learn AWS than simply reading about the services individually.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article