
The library you referenced might be able to assist with finding a way to do this. Stopping the server after a period of non-use is a different matter. They will not provide the secret, so the server will not be started. The purpose of the secret is to avoid the server from starting if an unauthorized person (or a bot) happens to hit the API Gateway endpoint. Here is a tutorial that shows many of these concepts: Build an API Gateway API with Lambda Integration
The Lambda function confirms that the secret is correct and starts the Amazon EC2 instance with Minecraft installed. The API Gateway will call the Lambda function, passing the secret. Give a URL to your friends that calls the API Gateway and passes a 'secret' (effectively a password). Create an API Gateway that triggers the Lambda function. Create an AWS Lambda function that turns on the server. Whether you willing to give your friends AWS credentials (not a good idea) that they could use to start the server directly, or whether it should be an indirect method.įrankly, I would recommend the following architecture:. Whether only authorized users should be able to trigger the Lambda function, or is it okay that anybody (eg a web crawler) might trigger it. When considering a method to use, you should consider security implications such as: Trigger an Amazon CloudWatch Alarm (which calls Lambda via SNS) If you reallywant to host your own Minecraft server on a virtual server, I’ve also done this exercise minus 90 of the steps on a 2GB Linode(get a 100, 60-day credit through that referral link) and you will not get a huge egress bill for the insane amount of data you transfer out. Somehow put a message in an SNS topic or an SQS queue. Thanks to the Minecraft server of this Hosting we can ensure that every Minecraft map produced, without the requirement to use webmail. Among them we can highlight the multiple locations offered. There are a few ways you could have users trigger the AWS Lambda function: Choosing APEX Hosting is a sensible choice (minecraft apex hosting).
During Phase 1, Realms migrated from the Minecraft-managed AWS EC2 virtual servers to Azure PlayFabs managed multiplayer hosting services.
Therefore, another mechanism is required that can be used to start the server.Ĭombine that with your desire to minimise costs and the only real solution is to somehow trigger an AWS Lambda function, which could start the server. Each Realm runs on a single virtual server at a given point in time, and those servers are allocated and reclaimed as demand waxes and wanes. If the server is off, it would not be possible to "connect" to the server.