TheSudoYT/terraform-aws-palworld

New Feature Request: An Input to Install Mods During Server Creation

Opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
There is no input that allows for mods to be uploaded to the server at this time.

Describe the solution you'd like
An input that allows mods to be uploaded to the server upon server creation.

Describe alternatives you've considered
Copying mods to the EC2 instance using SCP manually after server creation

Additional context
A feature that allows users to provide an input such as enable_mods = true and a mechanism to get mods onto the server.

A possible solution is to have users create an S3 bucket out of band of the Terraform code and provide the bucket name and ARN as inputs. The EC2 instance user_data script could then download the mods from the S3 bucket to the EC2 instance during creation.

Another possible solution is allowing users to upload mod files from the local PC to an S3 bucket to keep everything within the terraform workflow and avoid resource creation outside of terraform. The downside to this approach is the side of the mod files is unknown and varies widely depending on the mod. This could have unintended consequences while terraform is upload the files to S3 depending on the time it takes for terraform to upload the mod(s)

Hey! I'm a working DevOps Engineer and came across this repo, would love to contribute.

Wanted to make sure I'm not steppin on your toes if I take this one on. Would that be ok?

@dsm0014 Go for it!