basic/minimal_cluster¶
A basic cluster for AWS with no IAM or VPC resources. This is useful if you aren’t able to create such resources or want to share them.
Content of this module
Requirements¶
- terraform >= 0.12
Inputs¶
-
cluster (string)
Name of your cluster
-
iam_policy_name_game (string)
Name of the IAM policy to use instead of creating a new one for game
-
iam_policy_name_server (string)
Name of the IAM policy to use instead of creating a new one for server
-
key_pair_private (string)
Key Pair Private PEM to use instead of creating a new one
-
key_pair_public (string)
Key Pair Public Key to use instead of creating a new one
-
trusted_cidr (string)
CIDR to be trusted. This should at least contains the external IP for the local machine. Elsewhere, the provision and access to consul/nomad will fail.
-
vpc_id (string)
VPC ID to use instead of creating a new one
-
admin_password (string)
Administrative password for the game machine.
-
ami_prefix (string)
Prefix of the game AMI.
-
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).
-
datacenter (string)
Consul/Nomad datacenter
-
force_az (string)
Force Subnet placement in specified Availability Zone (us-east-1a)
-
instance_encoding_count (number)
Number of internal workers to spawn
-
instance_encoding_type (string)
Type of EC2 instance to use for encoding servers
-
instance_game_count (number)
Number of game instances to spawn
-
instance_game_type (string)
Type of EC2 instance to use for game servers
-
instance_internal_count (number)
Number of internal workers to spawn
-
instance_internal_type (string)
Type of EC2 instance to use for internal servers
-
instance_public_count (number)
Number of public workers to spawn
-
instance_public_type (string)
Type of EC2 instance to use for public servers
-
instance_server_count (number)
The number of supervisor servers. Must be an odd number. It is usually 3 for production deployment.
-
instance_server_type (string)
Type of EC2 instance to use for admin servers
-
namespace (string)
Deployment namespace that will regroup the clusters
-
region (string)
AWS deployment region
-
stage (string)
Deployment stage
-
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.
-
trusted_security_groups (list(string))
A list of security groups to be trusted.
-
vpc_cidr_block (string)
VPC IP Address Space
Outputs¶
-
azs_available
-
azs_selected
-
cluster
-
consul_nodes
-
encoding_worker_private_ips
-
encoding_worker_public_ips
-
game_private_ips
-
game_public_ips
-
iam_policy_name_game
-
iam_policy_name_server
-
internal_worker_private_ips
-
internal_worker_public_ips
-
private_key_pem
-
public_key
-
public_worker_private_ips
-
public_worker_public_ips
-
region
-
server_private_ips
-
server_public_ips
-
subnet_selected
-
vpc_id_selected