Skip to content

Commit

Permalink
Added Game Client VM instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
abmarcum committed Nov 17, 2023
1 parent 308d222 commit 7209e2b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,17 @@ gcloud compute addresses list --filter=name=frontend-service --format="value(add
JWT token can be obtained by accessing frontend api's ip address with '/login' path, such as "http://[IP_ADDRESS].sslip.io/login" and extracting it from the URL.


### Enable Cloud Linux VM for Game Client

You have the option to enable a GCP Linux VM for the Game Client. To have Terraform setup the VM, edit `terraform.tfvars` and set:

`enable_game_client_vm = true`

You can then connect to the VM using gcloud:

```shell
gcloud compute ssh game-client-vm
```
### Run the Game Launcher

To run the game launcher, you will need to have [Go](https://go.dev/dl/) installed to run it, as well as the
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/terraform.tfvars.sample
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ project = "PROJECT_ID"
resource_env_label = "demo-global-game"

# Game Client Configuration
enable_game_client_vm = true
enable_game_client_vm = false
game_client_vm_machine_type = "g2-standard-4"
game_client_vm_region = "us-central1" # MUST MATCH one of the below VPC regions
game_client_vm_storage = 100
Expand Down

0 comments on commit 7209e2b

Please sign in to comment.