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

ami_owner (string)

Owner of the AMI. Can be an AWS Account ID or ‘self’

ami_prefix (string)

Prefix of the game AMI

cluster (string)

Unique name to avoid conflict

datacenter (string)

Consul/Nomad datacenter

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.26.0.1.mysuffix)

game_count (number)

Number of game servers

instance_type (string)

Instance type to use

start_services (bool)

Start services on the machine

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