localstack / awscli-local

💲 "awslocal" - Thin wrapper around the "aws" command line interface for use with LocalStack
Apache License 2.0
1.06k stars 81 forks source link

Trouble running with awscli v1 #45

Closed brandonryan closed 2 years ago

brandonryan commented 3 years ago

I have awscli-local installed via pip3 install awscli-local[ver1] and am having issues using the cloudformation package command. It always uses the api as an external process as far as I can tell, because the FORCE_V2 variable is always true? I might be misunderstanding whats going on as im not a python developer.

I tried changing that to False and then got the following error

Traceback (most recent call last):
  File "/usr/local/bin/awslocal", line 272, in <module>
    main()
  File "/usr/local/bin/awslocal", line 98, in main
    run_in_process()
  File "/usr/local/bin/awslocal", line 196, in run_in_process
    if (current_profile['s3'].get('addressing_style') in ['virtual', 'auto']):
TypeError: 'NoneType' object is not subscriptable

Commenting out the offending lines of code allows me to use the tool.

awscli --version aws-cli/1.20.45 Python/3.9.7 Darwin/20.6.0 botocore/1.21.45

whummer commented 2 years ago

Thanks for reporting @brandonryan . This should be fixed in f81d0d9 - can you please try to upgrade to the latest version (>0.16) and give it another try? Thanks!