I have this simplified command, executed in a .bashrc function:
aws sso login --profile myprofile --cli-read-timeout 5
I’m trying to replace the command options, with an array of options:
params=('--profile myprofile')
params+=('--cli-read-timeout 5')
aws sso login "${params[*]}"
AWS complains about unknown options:
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
Unknown options: --profile myprofile --cli-read-timeout 5
I’m not sure what is the correct format to be used, in order to properly execute the command, thank you for your suggestions.