Add Nakama docker image parameter

This commit is contained in:
Layla 2020-06-27 19:35:13 -04:00
parent ba696c0310
commit 5da8dbc0c4
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31
2 changed files with 10 additions and 1 deletions

View File

@ -4,6 +4,10 @@ Parameters:
ServerName:
Type: String
Default: "nakama-default"
NakamaContainer:
Type: String
Description: test
Default: "heroiclabs/nakama:2.7.0"
#----------------------------
# Admin Portal Configuration
@ -62,7 +66,7 @@ Resources:
ContainerDefinitions:
- Name: nakama
Essential: 'true'
Image: "heroiclabs/nakama:2.7.0"
Image: !Ref NakamaContainer
MemoryReservation: 800
PortMappings:
- HostPort: 0

View File

@ -39,6 +39,10 @@ Parameters:
#----------------------
# Nakama Configuration
#----------------------
NakamaContainer:
Type: String
Description: Container image for Nakama server
Default: "heroiclabs/nakama:2.7.0"
NakamaUsername:
Type: String
Description: Username to access the Nakama admin portal
@ -186,6 +190,7 @@ Resources:
Properties:
TemplateURL: !Sub 'https://s3.us-east-1.amazonaws.com/sumu-stacks/nakama/${release}/cloudformation/nakama/task.yaml'
Parameters:
NakamaContainer: !Ref NakamaContainer
DatabaseUsername: !If ["CreateRdsStack", !GetAtt RdsDatabase.Outputs.RdsUsername, !Ref DatabaseUsername]
DatabasePassword: !If ["CreateRdsStack", !Join ["", ["{{resolve:secretsmanager:", !GetAtt RdsDatabase.Outputs.RdsSecret, ":SecretString}}" ]], !Ref DatabasePassword]
DatabaseEndpoint: !If ["CreateRdsStack", !GetAtt RdsDatabase.Outputs.RdsEnpoint, !Ref DatabaseEndpoint]