A Terraform playbook to create a cloud gaming rig on AWS, using Parsec.
- Terraform
- Parsec
- RDP Client
- Install Terraform
- Copy
terraform.tfvars.example
toterraform.tfvars
and populate your AWS credentials - In AWS console create an EBS volume to serve as your "GameDrive" recommended: 100gb (HDD works fine here, no need to pay extra for SSD)
- populate the
game_ebs_volume_id
variable - Run
terraform apply
- this will set up the initial infrastructure
- When the instance is provisioned in the AWS console right click the instance and press connect, download the RDP config file
- Using an RDP client dial into your new instance, the username is "Administrator" you can get the password by running
terraform output instance_password
- Once connected, Parsec-Cloud-Preparation-Tool will automatically start. Follow the steps until completion. You can skip installing the Nvidia driver and the auto-login, it should already have been done for you by the user data script.
- Open the Parsec Client and log in, once this is done you can quit RDP and connect to your machine via Parsec
- Install and log into your game launchers
- Using "Disk Manager" in Windows, mount and format your game-drive
- In steam change the install location for games to the newly mounted game drive
- Once you're happy with your base machine create an AMI from it in the AWS console, paste the AMI ID into the terraform variables, this will ensure that every subsequent launch will not require any setup.
- You can always make tweaks to your base machine, just remember to create a new AMI each time you've made a change, otherwise everything other than items stored on the Game Drive will be reset between launches
- Everytime you want to play simply run
terraform apply
wait a few mins and your machine will show up in Parsec - When you're finished run
terraform destroy