amazon web services - "aws s3 ls" command throwing "InvalidRequest" error message. How to solve it? -
after run aws s3 ls
command below error message:-
a client error (invalidrequest) occurred when calling listbuckets operation: attempting operate on bucket in region requires signature version 4. can fix issue explicitly providing correct region location using --region argument, aws_default_region environment variable, or region variable in aws cli configuration file. can bucket's location running "aws s3api get-bucket-location --bucket bucket".
below more details , findings may answer question:-
the command being executed ec2 instance running in
ap-south-1
region.this amazon doc says new region created after jan 30 2014 support signature version 4.
as suggested error message tried giving command
aws --region ap-south-1 s3 ls
command gives same error message.i have run
yum update
, aws cli version latestaws-cli/1.10.33 python/2.7.10 linux/4.4.11-23.53.amzn1.x86_64 botocore/1.4.23
the above
aws s3 ls
command works absolutely fine , lists buckets if executed us-east-1 instance.
you need update aws cli
latest version(v1.11.84 @ time of writing).
if yum update
not working try following guide install aws cli
the reason behind error is, in newer regions aws s3 doesn't support lower signature version.
Comments
Post a Comment