Reputation: 16439
I have a spring-boot application to upload and delete a file in Amazon-S3 bucket.
The project is working fine on Windows but when I am trying to upload anything using curl
command in linux through putty, it's giving me the access denied exception.
The exception given is :
com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied
The screenshot :
Upvotes: 0
Views: 842
Reputation: 2106
You probably didn't setup your AWS credentials for your Linux.
The instructions are here
just make sure your have your aws_access_key_id
and aws_secret_access_key
Upvotes: 1
Reputation: 1802
Can you check your using IAM credential and S3 policy setting ?
Regardless of platforms, it's necessary to use credentials (access key id & secret access key). Please check credential files have same access key id.
S3 policy can handle deny/allow access according to credentials or IP addresses. Do you configure such policy ?
Upvotes: 1