diff options
| author | m-chandler <mchandler89@gmail.com> | 2021-09-11 17:58:54 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-11 17:58:54 +1000 |
| commit | 15f7c4cbdec9e0dfe3de00c82cc8ad258449992e (patch) | |
| tree | 2261cb8d5bb7cfd50a89984bc46ae0b90e53fb1e | |
| parent | bbd5ddddbd72e42212087b450bc83004e41fbe52 (diff) | |
| parent | 8f39ec59a5c8aa1e932e1be89ed6cdef10777699 (diff) | |
Merge pull request #17 from nicolas-lang/master
Added new Parameter UpdateModsOnStart
| -rw-r--r-- | cf.yml | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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
|
