A simple Terraform template to build a Parsec Server inside a VPC in AWS.
The user_data isn't quite delivering the authtoken correctly at this time, you may have to insert the file yourself.
Only tested on OSX.
- Clone this repo.
- Install Terraform.
- Create a
~/.tfvars
file that looks like the template below with your vars substituted. - Run
terraform plan -var-file=~/.tfvars
in the root of the repo to check that Terraform can and will build what you want it to. - Run
terraform apply -var-file=~/.tfvars
to build your server. - Run
terraform destroy -var-file=~/.tfvars
to clean up when you're done.
parsec_authcode = "YOUR_PARSEC_AUTHCODE"
aws_access_key = "YOUR_AWS_ACCESS_KEY_ID"
aws_secret = "YOUR_AWS_SECRET_ACCESS_KEY"
aws_region = "YOUR_AWS_REGION"
aws_vpc = "YOUR_AWS_VPC"
aws_subnet = "YOUR_AWS_SUBNET"