Skip to content

S3ResponseError: 400 Bad Request #3

@djandruczyk

Description

@djandruczyk

amiimporter.py --vboxfile /tmp/CentOS7-20161123_0.box --s3bucket my-amis --region=us-east-2 --verbose
INFO:root:Uploading ./tmpdir/box-disk1.vmdk to s3
Traceback (most recent call last):
File "/usr/local/bin/amiimporter.py", line 214, in
main(make_opt_parser().parse_args(sys.argv[1:]))
File "/usr/local/bin/amiimporter.py", line 208, in main
upload_vmdk_to_s3(opts, vmdkfile)
File "/usr/local/bin/amiimporter.py", line 96, in upload_vmdk_to_s3
bucket_location = bucket.get_location()
File "/usr/lib/python2.7/dist-packages/boto/s3/bucket.py", line 1144, in get_location
response.status, response.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request

InvalidRequestThe authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.0B2D268921129D32uIt4GoSguVmj+Lh9VPtuhwb73affiu/2OOoqW7+l06m3cZIWYABs7zjTd+n0KJa5CvuaNco0Fk4=

I have verified my environment variabels are properly exported for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY_ID, and it still gives me the same results..

Ubuntu 16.04 64 bit using python2.7 and python-boto-2.38.0

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions