basic/setup-ami¶
This cluster creates the minimal infrastructure for setting up a Game AMI.
Content of this module
Requirements¶
- terraform >= 0.12
Inputs¶
-
bastionid (string)
Id of this bastion instance
-
cluster (string)
Name of your cluster
-
trusted_cidr (string)
CIDR to be trusted. This should at least contain the external CIDR (<ip>/32) for the local machine. Otherwise, the provision and access to Consul/Nomad will fail.
-
admin_password (string)
Administrative password for the game machine
-
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)
-
custom_tags (map(string))
Map of user defined tags to add to all cloud resources.
-
datacenter (string)
Consul/Nomad datacenter
-
game_az (string)
AWS Availability Zone where the game instance is to be created.
-
game_instance_profile_name (string)
The instance profile name to provide for the game instances.
-
iam_policy_auto_create (bool)
Flag for enabling automatic creation of IAM pofiles
-
instance_game_type (string)
Type of EC2 instance to use for server
-
region (string)
AWS deployment region
-
toolbox_location (string)
Genvid Toolbox Wheel file.
Only required if you need to update the one from the AMI. An empty value indicates to not install the toolbox.
-
trusted_cidrs (list(string))
A list of CIDR to be trusted
-
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.
Turning on encryption prevents AMIs from being transferable between regions or OUs.
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.