Anish B.
Anish B.

Reputation: 16439

Amazon S3 : The application is giving access denied exception in linux. Why?

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 :

enter image description here

Upvotes: 0

Views: 842

Answers (2)

Tiisetso Tjabane
Tiisetso Tjabane

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

hiropon
hiropon

Reputation: 1802

Can you check your using IAM credential and S3 policy setting ?

  1. Credential

Regardless of platforms, it's necessary to use credentials (access key id & secret access key). Please check credential files have same access key id.

  1. S3 policy

S3 policy can handle deny/allow access according to credentials or IP addresses. Do you configure such policy ?

Upvotes: 1

Related Questions