emdgroup / awscli-s3touch

Simulate S3 events without re-uploading a file.
Apache License 2.0
19 stars 10 forks source link

Compatible with awscli 2? #10

Open drewish opened 2 years ago

drewish commented 2 years ago

I was trying to use this with aws-cli/2.2.43 Python/3.9.7 Darwin/19.6.0 source/x86_64 prompt/off but once I run:

$ aws configure set plugins.name awscli.plugins.s3touch

I start getting the same error after every command:

$ aws help

No module named 'awscli.plugins'

Anyone had it working with v2?

drewish commented 2 years ago

I was able to get this working by moving it out of the awscli directory:

mv /usr/local/lib/python3.9/site-packages/awscli/plugins/s3touch /usr/local/lib/python3.9/site-packages/

And changing the plugin config to uses the un-prefixed module name:

[plugins]
cli_legacy_plugin_path=/usr/local/lib/python3.9/site-packages
s3touch = s3touch

I had to install boto3 as well:

/usr/local/bin/pip3 install boto3