aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorm-chandler <mchandler89@gmail.com>2021-09-11 17:58:54 +1000
committerGitHub <noreply@github.com>2021-09-11 17:58:54 +1000
commit15f7c4cbdec9e0dfe3de00c82cc8ad258449992e (patch)
tree2261cb8d5bb7cfd50a89984bc46ae0b90e53fb1e
parentbbd5ddddbd72e42212087b450bc83004e41fbe52 (diff)
parent8f39ec59a5c8aa1e932e1be89ed6cdef10777699 (diff)
Merge pull request #17 from nicolas-lang/master
Added new Parameter UpdateModsOnStart
-rw-r--r--cf.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/cf.yml b/cf.yml
index 8530e33..5517bb9 100644
--- a/cf.yml
+++ b/cf.yml
@@ -58,6 +58,14 @@ Parameters:
- true
- false
+ UpdateModsOnStart:
+ Type: String
+ Description: Refer to https://hub.docker.com/r/factoriotools/factorio/ for further configuration details.
+ Default: false
+ AllowedValues:
+ - true
+ - false
+
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
@@ -69,6 +77,7 @@ Metadata:
- InstanceType
- SpotPrice
- EnableRcon
+ - UpdateModsOnStart
- Label:
default: Remote Access (SSH) Configuration (Optional)
Parameters:
@@ -98,7 +107,8 @@ Metadata:
default: "If you have a hosted zone in Route 53 and wish to set a DNS record whenever your Factorio instance starts, supply a record name here (e.g. factorio.mydomain.com)."
EnableRcon:
default: "Do you wish to enable RCON?"
-
+ UpdateModsOnStart:
+ default: "Do you wish to update your mods on container start"
Conditions:
KeyPairNameProvided: !Not [ !Equals [ !Ref KeyPairName, '' ] ]
IpAddressProvided: !Not [ !Equals [ !Ref YourIp, '' ] ]
@@ -106,7 +116,6 @@ Conditions:
SpotPriceProvided: !Not [ !Equals [ !Ref SpotPrice, '' ] ]
DoEnableRcon: !Equals [ !Ref EnableRcon, 'true' ]
-
Mappings:
ServerState:
Running:
@@ -335,7 +344,7 @@ Resources:
- Host:
SourcePath: /opt/factorio
Name: factorio
- ContainerDefinitions:
+ ContainerDefinitions:
- Name: factorio
MemoryReservation: 1024
Image: !Sub "factoriotools/factorio:${FactorioImageTag}"
@@ -350,6 +359,9 @@ Resources:
- ContainerPath: /factorio
SourceVolume: factorio
ReadOnly: false
+ Environment:
+ - Name: UPDATE_MODS_ON_START
+ Value: !Sub "${UpdateModsOnStart}"
# ====================================================
# SET DNS RECORD
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage