UGS Terraform Provider

Over the last few weeks, I’ve been working to automate infrastructure setup workflows with the Unity Services APIs. The idea was to have a one-click editor flow which would set up required services for our project.

This has proved to be quite a challenge, as several services have hidden endpoints which are only used in the Unity Cloud dashboards or locked down in Unity package internals. Additionally, I’ve struggled with some APIs erroring out with 500 codes, where clearly some prerequisites are not fulfilled by me, but I cannot know what since the API responses don’t give me feedback as to what went wrong.

There is the UGS API package, which is still experimental and has its own issues around not supporting the hidden endpoints and some bugs, like where request authentication is missing for CCD Entries.

For our own cloud services codebase, we use Terraform for IaC and this has been a huge asset to our DevOps workflows. This got me thinking - Is there any interest at Unity to implement a Terraform provider for UGS? I think Terraform would be a robust way of managing multiplayer infrastructure hosted with Unity, and it could live alongside other integrations such as cloud providers.