genvid-ami¶
Initial setup for Genvid Windows Game AMI.
usage: genvid-ami [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
{clean,copy,list,output,rename,save,setup} ...
Positional Arguments¶
command | Possible choices: clean, copy, list, output, rename, save, setup |
Named Arguments¶
--loglevel | Possible choices: DEBUG, INFO, WARNING, ERROR Set the script log level |
Sub-commands:¶
clean¶
Uninstall services.
genvid-ami clean [-h] [-f] cluster_id
Positional Arguments¶
cluster_id | The cluster ID. |
Named Arguments¶
-f, --force | Force delete the cluster. Default: False |
copy¶
Copy an AMI across AWS regions.
genvid-ami copy [-h] [--region REGION] [--public] srcami regions [regions ...]
Positional Arguments¶
srcami | The ID of the source AMI. |
regions | The region to copy the AMI. |
Named Arguments¶
--region | The region of the source AMI. |
--public | Make the new AMI public. Default: False |
list¶
List available AMI.
genvid-ami list [-h] [--version VERSION] [--prefix PREFIX] [--owner OWNER]
[--output OUTPUT]
{wingame,server}
Positional Arguments¶
ami_type | Possible choices: wingame, server The type of AMI. |
Named Arguments¶
--version | The version to check (“1.12.0”). Default: “1.12.0” |
--prefix | The prefix to look for. (default depends on type) Default: “” |
--owner | The owner of the ami (“self”). Default: “self” |
--output | The formatted output of each AMI. Will be used as a template over the AMI object (passed as argument ami). (“{ami.name}”) Default: “{ami.name}” |
output¶
Return the output of the cluster state.
genvid-ami output [-h] cluster_id [name]
Positional Arguments¶
cluster_id | The cluster ID. |
name | An optional variable name. Outputs everything otherwise. Default: “” |
rename¶
Copy a Windows AMI from one prefix to another.
genvid-ami rename [-h] [--region REGION] [--public] srcami dstprefix
Positional Arguments¶
srcami | The ID of the source AMI. |
dstprefix | The prefix of the destination AMI. |
Named Arguments¶
--region | The region of the source AMI. |
--public | Make the new AMI public. Default: False |
save¶
Create the game AMI
genvid-ami save [-h] [--prefix PREFIX] cluster_id
Positional Arguments¶
cluster_id | The cluster ID. |
Named Arguments¶
--prefix | Prefix to save the AMI under. Default: “default” |
setup¶
Initialize a new game instance on AWS.
genvid-ami setup [-h] [--az AZ] [--tfvars TFVARS] [--plan] cluster_id
Positional Arguments¶
cluster_id | The cluster ID. |
Named Arguments¶
--az | Availability zone to use. Default: “a” |
--tfvars | A default .tfvars file to set the cluster. |
--plan | Only plan the action. Default: False |