From 24fdc54e64692482022f0d62e9d63023a49c1976 Mon Sep 17 00:00:00 2001 From: Michael Chandler Date: Thu, 25 Apr 2019 17:53:58 +1000 Subject: Updates --- cf.yml | 12 +++++++++--- readme.md | 13 +++++++++++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/cf.yml b/cf.yml index 03dd54d..e992312 100644 --- a/cf.yml +++ b/cf.yml @@ -261,6 +261,10 @@ Resources: ToPort: 34197 IpProtocol: udp CidrIp: 0.0.0.0/0 + # - FromPort: 27015 + # ToPort: 27015 + # IpProtocol: tcp + # CidrIp: 0.0.0.0/0 VpcId: !Ref Vpc LaunchConfiguration: @@ -342,6 +346,9 @@ Resources: DesiredCount: 1 ServiceName: factorio TaskDefinition: !Ref EcsTask + DeploymentConfiguration: + MaximumPercent: 100 + MinimumHealthyPercent: 0 EcsTask: Type: AWS::ECS::TaskDefinition @@ -350,11 +357,10 @@ Resources: - Host: SourcePath: /opt/factorio Name: factorio - ContainerDefinitions: - + ContainerDefinitions: - Name: factorio MemoryReservation: 1024 - Image: dtandersen/factorio:0.17 + Image: !Sub "dtandersen/factorio:${FactorioImageTag}" PortMappings: - ContainerPort: 34197 HostPort: 34197 diff --git a/readme.md b/readme.md index 1b8a31e..50b6486 100644 --- a/readme.md +++ b/readme.md @@ -73,9 +73,18 @@ Update your CloudFormation stack. Change the server state parameter from "Runnin Delete the CloudFormation stack. Done. -## What's Missing? +**How can I upgrade the Factorio version?** -Probably a lot. +Update your CloudFormation stack. Set the required tag value for `FactorioImageTag`. Use the tags specified here: https://hub.docker.com/r/dtandersen/factorio/. + +**How can I change map settings, server settings etc.** + +You'll need to have remote access to the server (refer to Optional Features). You can make whatever changes you want to the configuration in `/opt/factorio/config`. Once done, restart the container using the following command: `sudo docker restart $(docker ps -q --filter name=ecs-factorio)`. + +## What's Missing / Not Supported? + +* Scenarios. +* The security group on the EC2 instance prevents the RCON port from being exposed. I don't know what RCON does, if it's secure by default etc. I don't use it. You can open the port... just search the template for `27015` and uncomment the lines in the `Ec2Sg` resource. ## Expected Costs -- cgit v1.2.3