Rauttis / factorio-aws-ecs-cdk

Deploy a factorio server to ECS using CDK
MIT License
6 stars 1 forks source link

Use some other solution than EFS for storing saves and server configs #3

Open Rauttis opened 5 years ago

Rauttis commented 5 years ago

We could get rid of the EC2 instances and move to Fargate if a solution other than EFS is implemented (currently Fargate does not support EFS mounts).

Copying and restoring saves from S3 on instance shutdown / boot would be nice.

Orionx86 commented 4 years ago

EFS support now exists for ECS and Fargate

https://aws.amazon.com/about-aws/whats-new/2020/04/amazon-ecs-aws-fargate-support-amazon-efs-filesystems-generally-available/

Rauttis commented 4 years ago

Fargate EFS support was still missing from Cloudformation until yesterday, I refactored this to use Fargate now.

EFS still isn't a great solution for this though, since accessing it from outside the container to upload existing saves etc. is not trivial.

Rauttis commented 4 years ago

Using something like this https://github.com/mroote/factorio-server-manager instead of a raw factorio server image would make managing things easy without the need to have direct access to the filesystem, in which case EFS would work just fine.