Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (5.6k points)

 I have launched a Windows instance and created an S3 bucket also created role S3 full access and then assigned it to the instance. But if I try to access the file from the bucket I getting an error:

<Error>

    <Code>AccessDenied</Code>

    <Message>Access Denied</Message>

    <RequestId>5EDB0A49E36E0E50</RequestId>

    <HostId>cPFNEbsfwXA=</HostId>

</Error>

My role is below: 

{

  "Code" : "Success",

  "LastUpdated" : "2018-04-10T04:47:11Z",

  "Type" : "AWS-HMAC",

  "AccessKeyId" : "myaccess"

  "SecretAccessKey" : "mysecretkey",

  "Token" : "mytoken",

  "Expiration" : "2018-04-10T11:10:43Z"

}

I'm new to AWS, can some help me!

1 Answer

0 votes
by (12.4k points)
edited by

When you are trying to access objects using the URL in the browser, there you are not passing the user credentials so S3 doesn't know who you are and therefore denying accessing.

You can access the objects via API call from SDK or by CLI.

Do check out to AWS Course to master AWS.

Watch this video tutorial to know more about S3.

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

+4 votes
1 answer
asked May 25, 2019 in AWS by Palak (900 points)

Browse Categories

...