aws_group_setup - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > AWS data infrastructure


As root, run as aws_group_setup. The Greengrass service should NOT be running.

DESCRIPTION

The aws_group_setup utility is designed to automate the creation of AWS Greengrass groups using South Coast Science's configurations.

Note that the template name for the AWS group is specified by the group name as set by the gas_model_conf utility.

When setting the group, the group must already exist and the ML lambdas must be associated with the greengrass account for which the IAM auth keys are given.

If neither --retrieve or --set flags are used, the aws_group_setup utility reports the group summary as stored on the device, if it exists.

SYNOPSIS

aws_group_setup.py [{ -r | -s [-a AWS_GROUP_NAME] [-f] }] [-i INDENT] [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-r, --retrieve retrieve the configuration from AWS
-s, --set set the group configuration
-a AWS_GROUP_NAME, --aws-group-name=AWS_GROUP_NAME override the name of the AWS group to configure
-f, --force force overwrite of existing configuration
-i INDENT, --indent=INDENT pretty-print the output with INDENT
-v, --verbose report narrative to stderr

EXAMPLES

./aws_group_setup.py -s -a scs-test-001-group -m

DOCUMENT EXAMPLE

{ "group-name": "scs-cube-001-group", "time-initiated": "2022-04-07T13:26:59Z", "unix-group": 984, "ml": "oE.1" }

FILES

~/SCS/aws/aws_group_config.json

SEE ALSO

scs_mfr/aws_deployment
scs_mfr/aws_identity
scs_mfr/gas_model_conf
scs_mfr/pmx_model_conf

RESOURCES

Boto3 Greengrass Documentation