This repository provides a reference framework to deploy Pixel Streaming on Unreal Engine at scale and manage streaming sessions across multiple instances of signalling servers. The repository is based on the 5.2 version of Unreal Engine's Pixel Streaming infrastructure which can be found in this link
- You have a functional Unreal Engine application configured with Pixel Streaming.
- You have an AWS account which administrative privileges.
- The SignallingWebServer and Matchmaker repositories only contain the files that have been changed to support this framework. For deploying them, you would need to merge the changes with the existing files in Unreal Engine's Pixel Streaming repository
- Security group for SignallingWebServer may need additional routes depending on your setup. Please update the same in create.yml.
- The Pixel Streaming Infrastructure contains reference implementations for all the components needed to run a pixel streaming application. Deploy SignallingWebServer and Matchmaker applications on EC2 instances of their own and create an AMI. . For steps associated with deploymenty,refer documentation.
- Create and EC2 instance and clone the Frontend repository. Register the application as a service, running on port 8080. Once completed, please use directions from step #1 to create an AMI
- At this step, you should have 3 AMI - SignallingWebServer, Matchmaker and Frontend applications.
- Please upload the script create.yml to cloudformation and provide the AMIs' created as input. The script would create the required infrastructure as per the solution diagram
- Please replace the code of the lambda functions created with the code defined in Lambda
- Please connect to the Frontend server and navigate to '/usr/customapps/pixelstreaming/Frontend/implementations/react' .Please switch to 'su' and replace the environment variables in webpack.dev.js and restart Frontend service.Please ensure that the frontend service shows as 'Running' with no errors
- Please run the lambda function uploadToDDB from your AWS console to populate DynamoDB with the required information
Please retrieve the Cognito application endpoint URL from within Cognito. Below are the steps to retrieve the same
- Go to the Amazon Cognito console
- Choose User Pool
- Choose the existing user pool from the list - ueauthenticationpool
- Select the App integration tab.
- Select the existing app client from the app client list
- Click on the 'View Hosted UI' button to get started
Please sign up with a new user .Here are the steps for the same
In order for the solution to run end to end, the ALB created for Matchmaker and SignallingWebServer would need to expose https endpoints. Please upload/create required SSL certificates in ACM and link them to the ALB listeners.
To cleanup, please remove the lambda code and then delete the cloudformation stack
You should not use this AWS Content in your production accounts, or on production or other critical data. You are responsible for testing, securing, and optimizing the AWS Content, such as sample code, as appropriate for production grade use based on your specific quality control practices and standards.