submodules/game/aws

An AWS EC2 Windows instance setup for running a game.

Providers

  • aws
  • template

Requirements

  • terraform >= 0.12

Inputs

admin_password (string)

Administrative password for the game machine

cluster (string)

Unique name to avoid conflict

datacenter (string)

Consul/Nomad datacenter

game_ami_prefix (string)

Prefix of the game AMI

instance_profile (string)

IAM instance profile to use

key_name (string)

The key name to use with the instance

private_key (string)

Your private key

subnet_ids (list(string))

An ordered list of subnets that can be used. Empty means all.

New in version 1.24.0.

use_drive_encryption (bool)

If you want to have encrypted EBS, select true. If you do not want to have encypted EBS, or you are upgrading the SDK version from 1.24 or below to 1.25 or higher, select false.

WARNING: your drives will be recreated if you toggle this feature with existing drives. Prior to 1.25, the drives were not encrypted. Starting with version 1.25 the encryption is enabled by default.

vpc_security_group_ids (list(string))

A list of security group IDs to be attached to the instance

ami_version (string)

Version prefix of the AMIs (both game and genvid) to use (ex: 1.20.0 will match both 1.20.0 and 1.20.0.0 versions).

In order to use an AMI with a version suffix, the whole version with the suffix must be specified (ex: 1.28.0.1.mysuffix)

Default: 1.30.0

game_ami_owners (list(string))

The list of owners that can own the game AMI. Default to Genvid public account.

Changed in version 1.30.0: Renamed from ami_owner to game_ami_owners and made it a list of strings.

Default: [‘149754531711’]

game_count (number)

Number of game servers

Default: 1

instance_type (string)

Instance type to use

Default: g4dn.xlarge

start_services (bool)

Start services on the machine

Default: True

tags (map(string))

Tags to be applied to all cloud resources.

toolbox_url (string)

Genvid Toolbox Wheel URL.

Only required if you need to update the one from the AMI. An empty value indicates to not install the toolbox.

Outputs

consul_nodes
instance_ids
private_ips
public_ips