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: ServerName:
Type: String Type: String
Default: "nakama-default" Default: "nakama-default"
NakamaContainer:
Type: String
Description: test
Default: "heroiclabs/nakama:2.7.0"
#---------------------------- #----------------------------
# Admin Portal Configuration # Admin Portal Configuration
@ -62,7 +66,7 @@ Resources:
ContainerDefinitions: ContainerDefinitions:
- Name: nakama - Name: nakama
Essential: 'true' Essential: 'true'
Image: "heroiclabs/nakama:2.7.0" Image: !Ref NakamaContainer
MemoryReservation: 800 MemoryReservation: 800
PortMappings: PortMappings:
- HostPort: 0 - HostPort: 0

View File

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