I'm storing files in Amazon S3 and want to view them in HTML in an iframe src but I'm having trouble constructing the URL required to access files from S3. I'm using Python's Boto library, and my permission settings allow for public access. This is what I tried...
https://[BUCKET_NAME].s3.amazonaws.com/[UNIQUE_KEY]?AWSAccessKeyId=xxxxxxxxxxxxx
However, this is throwing an error.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>0A115D93B8454F2F</RequestId>
<HostId>
YxcOdP2zYWw8Vl1p137Ipaqrcx3sPN68PEFRb8H9Kv5XlyRtye7xB0ZuVB/mvDWp
</HostId>
</Error>
UPDATE: There were some issues with the public settings, which are now fixed but when I enter the above in the iframe src, my browser starts downloading the file. I want to simply view it!