diff --git a/cloudformation/nakama/task.yaml b/cloudformation/nakama/task.yaml index 7f50567..f796348 100644 --- a/cloudformation/nakama/task.yaml +++ b/cloudformation/nakama/task.yaml @@ -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 diff --git a/cloudformation/nakama/top.yaml b/cloudformation/nakama/top.yaml index 23e80ef..c36f07e 100644 --- a/cloudformation/nakama/top.yaml +++ b/cloudformation/nakama/top.yaml @@ -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]