minecraft-terraform-gcp

所属分类:云计算
开发工具:HCL
文件大小:5KB
下载次数:0
上传日期:2021-12-27 21:25:56
上 传 者sh-1993
说明:  在Google Cloud Platform中部署多玩家minecraft服务器的Terraform计划
(A Terraform plan to deploy a multiplayer minecraft server in Google Cloud Platform)

文件列表:
.terraform.lock.hcl (1079, 2021-12-28)
main.tf (6019, 2021-12-28)

# Minecraft Server - Terraform plan for GCP This is a Terraform infrastructure provisioning template for deploying the resources to build your very own Minecraft server. By using a GCS bucket, game data is preserved across sessions. The server is hosted on a permenant, static IP address so you only need to configure your client device and you're done! In order to save costs, the user needs to start the VM each session, but it will shutdown within 24 hours if you forget to turn it off. Features: - Runs [itzg/minecraft-server](https://hub.docker.com/r/itzg/minecraft-server/) Docker image - Preemtible VM (cheapest), shuts down automatically within 24h if you forget to stop the VM - Reserves a stable public IP, so the minecraft clients do not need to be reconfigured - Reserves the disk, so game data is remembered across sessions - Restricted service account, VM has no ability to consume GCP resources beyond its instance and disk - 2$ per month - Reserved IP address costs: $1.46 per month - Reserved 10Gb disk costs: $0.40 - VM cost: $0.01 per hour, max session cost $0.24 ## Setup
### Pre-requisites - You have the [Google Cloud SDK](https://cloud.google.com/sdk/docs/quickstart) installed locally - You have [Terraform](https://www.terraform.io/downloads) installed locally - Create a GCP account (if you don't have one already) and a new project. - Enable Google Cloud Storage for the associated project and create a GCS storage bucket. - Enable Compute Engine for the associated project. After following the above steps, copy and paste the Terraform code from `main.tf` into your local version. Add your project specific information the following information into the `main.tf` file: ```tf terraform { backend "gcs" { prefix = "minecraft/state" bucket = "terraform-gonzohouse" # the name of your GCS bucket } } locals { project = "gonzohouse-minecraft" # your project ID region = "us-central1" # a region and zone that is close to you. zone = "us-central1-a" ```

近期下载者

相关文件


收藏者