directx.py

DirectX sample script

usage: directx.py [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
                  [--logformat LOGFORMAT] [-c CLUSTER_ID]
                  {env,prepare,build,build-cloud,load,unload,upload-images}
                  ...

Positional Arguments

command Possible choices: env, prepare, build, build-cloud, load, unload, upload-images

Named Arguments

--loglevel

Possible choices: DEBUG, INFO, WARNING, ERROR

Set the script log level

--logformat Set the script log format
-c, --cluster_id
 

The cluster id. If not set with the command line, uses the environment variable GENVID_CLUSTER_ID if it exists. Otherwise defaults to ‘local’

Default: “local”

Sub-commands:

env

Print environment variables

directx.py env [-h]

prepare

Copy the Genvid files.

directx.py prepare [-h]

build

Build the specified target

directx.py build [-h]

build-cloud

Build the specified target for the cloud

directx.py build-cloud [-h]

load

Load the specified target definition in the cloud

directx.py load [-h] [targets [targets ...]]

Positional Arguments

targets The targets to load.

unload

Unload the specified target definition in the cloud

directx.py unload [-h] [targets [targets ...]]

Positional Arguments

targets The targets to load.

upload-images

Upload directx images to the cloud

directx.py upload-images [-h] [-b BUCKET] [-p PATH] [-u] [--region REGION]

Named Arguments

-b, --bucket Name of the bucket to use. Default is a combination of AWS account, bastion, and cluster IDs.
-p, --path

The path in the bucket (default: “/images/directx”).

Default: “/images/directx”

-u, --update-config
 

Upload configuration to the current cluster.

Default: False

--region Region where the images will be uploaded.