aws configure command not working on cli

aws cli
aws cli commands
install aws cli
aws command not found
install aws cli mac
aws cli login with username and password
configure aws cli on windows
update aws cli

Command "aws configure" giving following error ! This command was working before !

"aws configure" :

$ aws  configure
Traceback (most recent call last):
  File "/usr/bin/aws", line 23, in <module>
  File "/usr/bin/aws", line 19, in main
    return awscli.clidriver.main()
  File "/usr/share/awscli/awscli/", line 44, in main
    driver = create_clidriver()
  File "/usr/share/awscli/awscli/", line 53, in create_clidriver
  File "/usr/share/awscli/awscli/", line 49, in load_plugins
  File "/usr/share/awscli/awscli/", line 73, in awscli_initialize
  File "/usr/share/awscli/awscli/customizations/", line 32, in register_removals
  File "/usr/share/awscli/awscli/customizations/", line 45, in remove
  File "/usr/lib/python3/dist-packages/botocore/", line 64, in register
  File "/usr/lib/python3/dist-packages/botocore/", line 84, in _verify_accept_kwargs
    argspec = inspect.getargspec(func)
  File "/usr/lib/python3.4/", line 936, in getargspec
    raise ValueError("Function has keyword-only arguments or annotations"
ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

Can't understand what is the "ValueError"

You probably have just upgraded python to 3.4.1.

The version of the AWS CLI and botocore hosted for Ubuntu 14.04 is incompatible with python 3.4.1+. (source)

The version of the CLI installed via apt-get is out of date. Python 3.4.1 introduced a breaking change with the getargspec() function, which we use in botocore. (source)

You can try: (I don't have testbox with me to verify)

sudo apt-get remove awscli
sudo apt-get install python-pip
sudo pip install awscli
sudo pip install upgrade botocore

Install the AWS CLI version 1 on Windows, where the aws program is installed by running the following command. C:\> where c:\ aws C:\Program Files\Python37\Scripts\aws; A file path is NOT returned. When you run a AWS CLI command, AWS operations are performed on your behalf, using credentials that associate you with an IAM user or role. The policies attached to that IAM user or role must grant you permission to call the API actions that correspond to the commands that you run with the AWS CLI.

Seems aws cli doesn't work well with python 3.


Get the names and default values of a Python function’s arguments. A named tuple ArgSpec(args, varargs, keywords, defaults) is returned. args is a list of the argument names. varargs and keywords are the names of the * and ** arguments or None. defaults is a tuple of default argument values or None if there are no default arguments; if this tuple has n elements, they correspond to the last n elements listed in args.

Deprecated since version 3.0: Use signature() and Signature Object, which provide a better introspecting API for callables. This function will be removed in Python 3.6.

Can you try with python 2.6 or 2.7?

Requires Python 2.6.5 or higher.


Step 3.1: Set Up the AWS Command Line Interface (AWS CLI , Follow the steps to download and configure the AWS CLI. You use this profile when running the AWS CLI commands. downloaded and configured the AWS CLI, Amazon Polly might not be available unless you reconfigure the AWS CLI. CLI configuration file – This is another file that is updated when you run the command aws configure. The file is located at ~/.aws/config on Linux or macOS, or at C:\Users\ USERNAME \.aws\config on Windows.

You can try with these steps

sudo pip3 uninstall awscli
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.4 1
sudo pip3 install awscli

aws configure command not working on cli, You probably have just upgraded python to 3.4.1. The version of the AWS CLI and botocore hosted for Ubuntu 14.04 is incompatible with  If your config file does not exist (the default location is ~/.aws/config), the AWS CLI will create it for you. To keep an existing value, hit enter when prompted for the value. When you are prompted for information, the current value will be displayed in [brackets]. If the config item has no value, it be displayed as [None]. Note that the configure command only works with values from the config file. It does not use any configuration values from environment variables or the IAM role.

AWS CLI: How to Install & Use the AWS Command Line Interface, Use the AWS Command Line Interface with the common features and calling patterns. Learn how to install the AWS CLI on your Windows,  On Unix-like systems, the AWS Command Line Interface (AWS CLI) includes a command-completion feature that enables you to use the Tab key to complete a partially entered command. On most systems, this feature isn't automatically installed, so you need to configure it manually.

`aws configure` fails on Windows if region is set · Issue #4044 · aws , GitHub is home to over 50 million developers working together to host and Please provide the output from aws configure list command. : While the AWS CLI is available to install via Chocolatey, this is not a supported  Uninstall and reinstall the AWS CLI. For instructions, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. or. Download the file service-2.json. At the command prompt, run the following command.

Preparing the AWS Command Line for a Windows Environment , The method used to install AWS CLI and to prepare it for use varies from one The AWS CLI interface is now installed, but is not yet ready to use. In addition to his continued work in IT, Posey has spent the last several  The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts. The AWS CLI introduces a new set of simple file commands for efficient file transfers to and from Amazon S3.