This script installs AWS utilities and dependencies into chroot-dev target-disk.
AWSutils.sh --help
Usage: ./AWSutils.sh [GNU long option] [option] ...
Options:
-C Where to get AWS CLIv1
-c Where to get AWS CLIv2
-d Directory containing installable utility-RPMs
-h Print this message
-m Where chroot-dev is mounted (default: "/mnt/ec2-root")
GNU long options:
--cli-v1 See "-C" short-option
--cli-v2 See "-c" short-option
--help See "-h" short-option
--mountpoint See "-m" short-option
--ssm-agent See "-s" short-option
--utils-dir See "-d" short-option
Each of the functionality flag-options may also be specified by using environment variables:
CHROOTMNT
: Stands in for the-m
/--mountpoint
flag-optionCLIV1SOURCE
: Stands in for the-C
/--cli-v1
flag-optionCLIV2SOURCE
: Stands in for the-c
/--cli-v2
flag-optionSSMAGENT
: Stands in for the-s
/--ssm-agent
flag-optionUTILSDIR
: Stands in for the-d
/--utils-dir
flag-option
Further, additional output/logging can be generated by setting the DEBUG
environment variable to "true
". Doing so causes information that is normally only directed to syslog to also be printed to STDOUT
.
1If invoking scripts interactively, the DEBUG
value is automatically set to true.
2The -d
/--utils-dir
flag-option is not currently implemented. Its use will be silently-ignored by the script.