Sample Header Ad - 728x90

aws s3 copy failing with fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden

0 votes
0 answers
6910 views
Copying a file from S3 bucket to EC2 Instance.EC2 Instance is in the same region us-east-2 as S3 Bucket in.S3 Bucket is ACL disabled and Allowed for public access.
session
# /usr/local/bin/aws s3 cp s3://Bucket_name/Trail_SW/server_dec.tar.gz /tmp --source-region us-east-2
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden
session
/usr/local/bin/aws --version  
aws-cli/2.11.16 Python/3.11.3 Linux/4.18.0-240.1.1.el8_3.x86_64 exe/x86_64.rhel.8 prompt/off
Please share any suggestions.
Asked by dbadmin (23 rep)
May 4, 2023, 05:57 AM
Last activity: May 4, 2023, 06:42 AM