vatertime / minecraft-spot-pricing

Cloudformation template to deploy a Minecraft server
MIT License
140 stars 84 forks source link

How do I upload mods? #11

Closed AlistairKeiller closed 2 years ago

AlistairKeiller commented 2 years ago

I have sshed into the ec2 instance, and I cannot find any folder that is synced with the efs such that I can upload mods. I have also tried connecting to the efs using aws transfer family, but it has been extremely difficult. Is there a cleaner way to do this that I am missing?

vatertime commented 2 years ago

From the Readme:

How can I change map settings, server settings etc.

You'll need to have remote access to the server (refer to Optional Features). You can make whatever changes you want to the configuration in /opt/minecraft/. Once done, restart the container

The /opt/minecraft folder is the folder which is mapped to EFS. So, to upload a mod use your favorite file transfer program (mine is https://winscp.net/eng/docs/sftp for Windows) and upload the mod to the home directory on the ec2 instance, then copy or move it via your ssh terminal to the appropriate mod directory inside of /opt/minecraft.

You can see which paths are mapped to EFS on the ec2 instance by running df -h and looking for the {efs id}.efs.{region}.amazonaws.com url.