[DOCS-10532] Comment on: "MongoDB Stitch/examples/s3-javascript" Created: 16/Jul/17  Updated: 09/Sep/17  Resolved: 09/Sep/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mac os sierra

Location: https://docs.mongodb.com/stitch/examples/s3-javascript/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Referrer: https://docs.mongodb.com/stitch/tutorials/?_ga=2.245314950.2092111117.1500220630-1644021956.1492714341
Screen Resolution: 1024 x 768


Issue Links:
Related
Participants:
Days since reply: 6 years, 30 weeks, 3 days ago

 Description   

I got stuck in 2 places,

const promise = stitchClient.authManager.anonymousAuth(true);
did not work, it had to be
const promise = stitchClient.login();

and

An Amazon AWS user with PutObject permission on that bucket was not enough for me, i still got an access denied error, i had to add the PutObjectAcl action

"Action": ["s3:PutObject","s3:PutObjectAcl"]

to my bucket policy to be able to put the object in it.

learned a lot, thank you


Generated at Thu Feb 08 08:00:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.