本页面的内容
Prerequisites
Region Support
AWS Account
Account Permissions
Account Owner
Third-Party Account
On-Demand G Instance Quota
Remote Access
Using the AWS Console and AWS Marketplace AMIs
Log in to Your Account
Subscribe to the UE Product
Launch the Instance
Launch Option 1: CloudFormation
Launch Option 2: EC2 Console
View the Status of Your Instance
Connect to the Instance
Connection Option 1: NICE DCV
Connection Option 2: Windows RDP
Launch Unreal Engine 5
Cost Optimization
Stopping Your Instance
Restarting Your Stopped Instance
Terminating Your Instance
This tutorial provides a step-by-step guide to setting up an Unreal Engine 5 instance on Amazon Web Services (AWS).
Prerequisites
You need to meet the following prerequisites to successfully deploy Unreal Engine 5 on AWS.
Region Support
Make sure that the geographic region you are in (or the one closest to you)supports access to a GPU-enabled virtual workstation (g4dn instance).Check with AWS for a current list of regions where this is available.
The Unreal Engine 5 offering outlined here only supports g4dn instances at this time.
For the best performance, you want AWS services to be located as geographically close to you as possible. The Region with thelowest latencyvalue is usually the one you want. For optimal performance, we recommend less than 50 ms latency.
To check which Region is closest to you, refer to AWS'Regions and Availability Zoneswebpage. You can use a website such asping.psa.funto measure the latency from your location to the different Regions. If your nearest Region does not support access to a G4 instance, check other nearby Regions.
AWS Account
You need access to an AWS account, either your own or through your employer or another party. Verify that your account has sufficient permissions to access all the AWS services required to complete the deployment.
While Unreal Engine 5 is available at no cost, AWS instances do have an associated cost. If your account is linked to your employer or another party, check that they are prepared to accept responsibility for the costs involved before setting up your deployment instance.
For a more accurate estimate of your cost, review the pricing information on the EC2 Pricing page or create a new EC2 estimate using the AWS Calculator. For a personalized cost per hour estimate, first select your closest region, then select the g4dn.2xlarge
instance. When working, you can monitor your current costs using theAWS Billing Console.
For more information on linked accounts and consolidated billing, please refer to the Consolidated Billing Process AWS documentation.
Account Permissions
Account Owner
If you just created a new AWS account or are the owner of your account, you may be logging in as the root user. If you are logging in using an email address, rather than a username, you are using the root account.
For security purposes, we strongly recommend creating a new user and logging in with those credentials instead. Refer to AWS' documentation on creating new IAM users for more information.
Third-Party Account
If you are using a user account provided by your employer or a third party, you may need to request additional permission policies added in order to deploy Unreal Engine 5. The owner of your account may have rules about what policies you can access.
On-Demand G Instance Quota
Many resources in AWS are subject to quotas, also called limits. Each resource has a quota that represents the maximum value of that resource you can use. Quotas are how AWS manages resources for its clients, ensuring high availability and low latency, and avoiding resource overuse and unexpected charges.
Deploying Unreal Engine 5 on AWS requires connecting to a GPU-enabled virtual workstation (g4dn instance). You need a g4dn instance quota of at least 8 to use the recommended instance size.**
If you are using a new AWS account or have never used GPU instances before, check the value of your G4 instance quota and, if necessary, request an increase. Login to your AWS account and refer to AWS' documentation on service quotas to learn how to check your current quota or request an increase.
Remote Access
Accessing your G4 instance where Unreal Engine is deployed requires a remote access application. The instance comes with NICE DCV support for a low latency connection method. You can install the NICE DCV client ahead of time. The Windows RDP client is also effective for these purposes.
Using the AWS Console and AWS Marketplace AMIs
TheAWS Console is your main interface to all AWS services. The AWS service that you use to launch the virtual computer that you use for your virtual workstation is Elastic Compute Cloud (EC2). Aninstanceis a single virtual computer in EC2.
Instead of installing Unreal Engine from scratch on a basic Windows instance, start with an Amazon Machine Image (AMI) from the AWS Marketplace that already has Unreal Engine 5 installed and configured.
Log in to Your Account
Follow this link to log in to your AWS account.
As a reminder, make sure you log in as an IAM user and not as the root user for your account. If you need to create a new user, please refer to AWS' documentation on IAM users.
Subscribe to the UE Product
The Unreal Engine 5 AMI is hosted on the AWS Marketplace. Navigate to the product page found here.
Once you have opened the listing for the Unreal Engine AMI, click Continue to Subscribe in the upper right.
On the Subscribe to this software page, under Terms and Conditions, click Accept Terms. After a few minutes of processing, this adds the Unreal Engine 5 AMI to your AWS account so you can launch it in a variety of ways.
Launch the Instance
AWS provides several different ways to launch EC2 instances. We review two of the easiest methods, CloudFormation and the EC2 Console.
Launch Option 1: CloudFormation
CloudFormation is an offering by AWS that allows you to deploy many different resources all at once based on a simple template file. Epic Games created a template that automatically creates a new IAM role that is necessary for licensing the NICE DCV remote desktop software included in the AMI.
Within the AWS Management Console, ensure you're in the region where you want your instance deployed by selecting a region from the dropdown menu at the top right of the page.
If you don't already have access to a private keypair used for creating EC2 instances, follow this guide to create one. Use RSA as the type, and
**.pem**
as the format. Make sure it is downloaded and securely stored.Open this link to start the creation of a new stack in CloudFormation using our template.
As in Step 1 above, change the region of your AWS Management Console so you're creating this stack in the same region that you created your key pair.
Most fields are pre-filled with defaults that function correctly without any changes, but pay attention to the following:
Enter a valid Stack name.
Select a key pair name from the dropdown. This must be a key pair for which you have a local copy of the
.pem
file. If your list is empty, go back to step 1 to create one, or make sure you're in the correct region.We recommend that you enable Termination Protection. This is optional, but helps prevent accidental loss of data if the stack or the created instance is deleted by a user.
Specify a VPC and Subnet from the dropdown lists. There is usually one default VPC and several default subnets in your current region, so the top item in the list is usually preferred.
Once your settings are configured, check the box to acknowledge that AWS CloudFormation might create IAM resources, then click Create Stack.
If everything was configured correctly you should be taken to the overview page of your newly created stack, where you can see a
CREATE_IN_PROGRESS
status. Click on the Resources tab.The EC2Instance in the list of resources is the virtual machine you will be working with. If you don't see an EC2 Instance, it is still being created and will appear if you refresh the page after a few minutes. Click on the hyperlinked Physical ID to open up the EC2 Console. Continue in the Connect to the Instance section below.
Launch Option 2: EC2 Console
After you subscribe to the Unreal Engine product on the Marketplace, you can follow these steps to launch your instance directly from there.
If you intend to connect to this instance using NICE DCV, you have to deploy using the CloudFormation template or follow these steps to keep the free license active past a short evaluation period.
On the Subscribe page of the Marketplace listing, click Continue to Configuration.
On the Configure this software page, verify the region selected is correct, and if not, update it using the dropdown menu. When you are done, click Continue to Launch.
On the Launch this software page, expand the Choose Action dropdown menu and select Launch through EC2, then click Launch.
(Video) Set up Unreal Engine in the Cloud using Epic Games' AWS Marketplace Offering | Nextira (Six Nines)You are sent to the Launch an instance page, start by entering a name for your instance.
Several default settings are already filled in for you.You can modify the Instance type, Storage, and Networking sections to review the settings for your instance.The default settings are usually acceptable, but if you are an advanced user, feel free to change them.
Under the Key pair section, selectCreate a new key pairfrom the drop down menu and then enter a key pair name.
Akey pairconsists of public and private key files that are used to encrypt data between two computers. AWS stores the public key file, but you need to store the private key file.
After entering your key pair name, click Download Key Pair.
You must download the private key file when you create a new key pair and store it securely on your local computer. You will not have another chance to download the private key file, so save it in a safe place on your computer where you can find it again.
After downloading the private key file, click Launch Instance.
View the Status of Your Instance
After you launch the instance, you should shortly see it display Success. Click on View all instances after the instance has successfully launched.
This takes you back to theInstances page, which shows a list of your running instances and their status. Initially, the Instance State is listed as pending, before changing to running, and the Status Checks field starts out as Initializing.
After about 5-10 minutes the Status Checks field changes to 2/2 checks passed and your instance is ready. Continue with Connect to the Instance below.
Connect to the Instance
Once your instance has been created and has finished the set-up process, you can connect to it using NICE DCV, Windows RDP, or another remote-connection application.
On the Instances page of the EC2 Console, click the Instance ID.
This opens the Instance summary page. In the upper right corner, click Connect.
A warning message appears telling you that you can't connect. Click RDP client, then click Get password.
Click Browse and select the key pair file you downloaded and saved previously. Once the RSA key is showing in the text window, click Decrypt Password.
The decrypted password appears.
Connection Option 1: NICE DCV
The Unreal Engine AMI comes with support for NICE DCV, a remote desktop software offered by Amazon and meant to provide a low latency and high quality experience. If you haven't already, you need to install the NICE DCV client.
Open NICE DCV Client. Copy the Public DNS and paste it into the Hostname / IP Address field, then click Connect.
(Video) Perforce Helix Core on AWS CloudA warning comes up about the server's security certificate. Click Trust and Connect.
Next, enter the login credentials. Use ./Administrator for the Username and copy-paste the decrypted password from your key pair file. Click Login. NICE DCV begins to connect.
Connection Option 2: Windows RDP
You can initiate a remote desktop session using the standard Windows Remote Desktop Connection app ("Windows RDP") installed with Windows 10. This is a good alternative if you don't want to install extra remote desktop clients on your computer, but it doesn't provide the extra features of apps like NICE DCV.
Launch the Windows RDP client. Copy the Public DNS and paste it into the Computer field in the Windows RDP login window, then click Connect.
Under More choices select Use a different account, then enter .\Administrator for the username. For thePassword, enter the decrypted password from your key pair file. Click OK to connect to your instance.
If you have already set up another user account than Administrator, use that user name instead.
You then receive a warning about a certificate issue on the EC2 instance. Click Yes to continue with the connection, and optionally tick the box for Don't ask me again.
Launch Unreal Engine 5
After the login process completes, the Unreal Engine 5 EULA shows. Select the relevant option and click Verify EULA. You only need to do this on the very first connection to the instance.
Next, you are presented with the Epic Games log-in menu. Log in with your Epic Games account.
Once logged in, you are presented with a desktop with Unreal Engine 5 and the Epic Games Launcher already present. You can run Unreal Engine directly from the shortcut or run the Epic Games Launcher to login again and access content as you normally would.
Upon logging into the Launcher for the first time you may be presented with a prompt to update the launcher and a prompt to associate project files with the engine.
You can install any additional Windows software as you would to a local machine. We recommend you continue through the remaining part of this tutorial first to learn how to manage the instance so it is not running when not needed.
Cost Optimization
Due to the ongoing hourly cost of using an AWS instance, we recommend stopping or terminating your instance when you're not using it.
Stoppingan instance is similar to shutting down your home or work computer. All running applications quit, but whatever data was stored on persistent storage (that is, the instance's hard drive) is preserved. Once the instance is stopped, you are no longer charged any hourly fees for its use (although you are charged a small amount to store the data that was on the instance's hard drive). A stopped instance is still listed in the EC2 instance list in the AWS Console and can be restarted at any time. Refer to the AWS documentation on stopping and starting instances for more information.
Terminatingthe instance is more final than stopping it. When an instance is terminated, it is stopped like above, but all the data that was stored in persistent storage is also deleted, so not only do you not incur any hourly charges, you also do not incur any charges for storage of data. Terminated instances remain visible in the console for a short time, but unlike stopped instances, they cannot be restarted. You can enable Termination Protection to avoid accidental loss of your data. If you enabled Termination Protection from the CloudFormation template, you must disable it on the instance before you can successfully terminate it. Refer to the AWS documentation on terminating instances for more information.
Stopping Your Instance
In theAWS Console, select your instance.
Click theActionsbutton at the top of the list of instances and selectInstance State > Stop, then click Yes, Stop.
Restarting Your Stopped Instance
In theAWS Console, select your instance.
Click theActionsbutton at the top of the list of instances and select Instance State > Start.
Terminating Your Instance
In theAWS Console, select your instance.
(Video) 7. Pixel Streaming - AWS SetupClick theActionsbutton at the top of the list of instances and selectInstance State > Terminate, then click Yes, Terminate.