Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

diegotony/fun_minecraft_server

Repository files navigation

fun_minecraft_server

Terraform Module to setup a minecraft server in AWS

How to use?

module "minecraft_server" {
 source = "git::https://github.com/diegotony/fun_minecraft_server.git?ref=main"
 name = "minecraft-server"
 description = "Just Survive" # optional
 tags = {"hey":"whats up"} # optional
}

Resources

architecture

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

Name Source Version
create_attact_policy git::https://github.com/diegotony/aws_policy.git first_version
lambda_mc_shutdown git::https://github.com/diegotony/aws_lambda_function.git v1.1.0
lambda_mc_start git::https://github.com/diegotony/aws_lambda_function.git v1.1.0
server git::https://github.com/diegotony/aws_ec2_instance.git main

Resources

Name Type
aws_network_interface_sg_attachment.this resource
aws_security_group.this resource

Inputs

Name Description Type Default Required
name Server name string n/a yes
description Give a description to Server string "Just Survive" no
egress Outbound Config
map(object({
description = string
from_port = string
to_port = string
protocol = string
cidr_blocks = any
allow = string
type = string
}))
{
"default": {
"allow": "true",
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "default",
"from_port": 0,
"protocol": "-1",
"to_port": 0,
"type": "egress"
}
}
no
ingress Inbound Config
map(object({
description = string
from_port = string
to_port = string
protocol = string
cidr_blocks = any
allow = string
type = string
}))
{
"http-80": {
"allow": "true",
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "Allow port 80 from VPC",
"from_port": 80,
"protocol": "tcp",
"to_port": 80,
"type": "ingress"
},
"minecraft": {
"allow": "true",
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "Allow port 25565 from VPC",
"from_port": 25565,
"protocol": "tcp",
"to_port": 25565,
"type": "ingress"
},
"ssh-22": {
"allow": "true",
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "Allow port 22 from VPC",
"from_port": 22,
"protocol": "tcp",
"to_port": 22,
"type": "ingress"
}
}
no
minecraft_server_url Minecraft server URl (1.19 for default) string "https://launcher.mojang.com/v1/objects/e00c4052dac1d59a1188b2aa9d5a87113aaf1122/server.jar" no
tags tags map
{
"Environment": "minecraft-server",
"created-by": "terraform",
"owner": "Notch"
}
no

Outputs

No outputs.

About

Terraform Module to Build a minecraft server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /