Getting Started with AWS in Unity

Your Gateway to the Cloud

Micha Davis
3 min readJun 16, 2021

My next Unity project will require some online data storage to function. For that, I’m going to need Amazon Web Services (AWS) — specifically the Simple Storage System (S3). AWS is very easy to set up with Unity. Follow along as I prepare my project.

https://aws.amazon.com/

Before anything else, you will need an AWS account, and Unity version 4.x or higher. I’ll be using Unity 2020.3 for this article.

You will also need a copy of the AWS SDK for Unity. Specifically, we want the S3 package.

Double-click on the extracted package and import it into your project. When you’re done, you should have a set of folders in your Assets like this:

Now, we need to add one line of code to the Awake or Start method of an object in the scene. Create a new empty game object in the Hierarchy and call it “AWS Manager” and attach a new C# script component to that object named “AWSManager.cs.”

Inside the AWSManager class, we’ll add this method:

Finally, you need to go to your Amazon Cognito Console and create a new Identity Pool. This can be a chokepoint — it can take up to 24 hours for your new account to be activated. Before then you won’t be able to access the dashboard.

Name the pool after your app. For my purposes, I know I’ll want unauthenticated users to access the pool so I have that checked as well.

That’s all for this article. I’ll detail how to use this system in a later article in the series, but first I’m going to start constructing my menu-driven app. Check in tomorrow, when I cover creating user input forms in Unity.

--

--

Micha Davis

Unity Developer / Game Developer / Artist / Problem Solver