cli(command: str) → str¶
awsclito execute a command.
This function will call the
awscliwithin the same process and not spawn subprocesses. In addition, the STDERR of the called function will be surpressed and the STDOUT will be returned as a string.
Parameters: command – The command to be executed by the
>>> # cli('--version')