Amazon web service console- access denied for manifest file - amazon-web-services

I am new to Amazon web CloudFront console and S3 buckets. I am trying to get on-demand streaming work. When tried to view my uploaded video- ism file in the s3 bucket, I get the following XML response when entered following URL in a web browser:
http://mybucket.s3.amazonaws.com/videos/video_1/BigBuckBunny.ism/Manifest
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>C1EC48985EE12047</RequestId>
<HostId>
L7JtCmEHm9W3HUeZEV08GyoFBxiC4krHvoiQyPZrYxeOaIP8yhMJKP60+eIo5qTZcsDasW48Ck8=
</HostId>
</Error>
I am able to download this same ism file, using an url; http://mybucket.s3.amazonaws.com/videos/video_1/BigBuckBunny.ism. Then why only an issue with the manifest file which I will be accessing from my application?
From the following documentation given on Amazon, I have followed all 4 steps and I am now stuck at Step- 5.
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/on-demand-streaming-smooth.html
What could I be missing? Any help is appreciated.

Amazon S3 does not know how to handle ism files, that's why /manifest doesn't work. What you need to do is configure your distribution with smooth streaming enabled, like the link you provided, and replace the s3 URL with cloudfront.
http://d124.cloudfront.net/videos/video_1/BigBuckBunny.ism/Manifest

Related

Amazon S3 Bucket Index?

Hello i want to use my bucket to display a index or a redirect is that possible?
For example when i go to my bucket bucket1example.s3.amazonaws.com,
i get AccessDenied error
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>42RP9K65G8T9EA7A</RequestId>
<HostId>
byYoD3naIjOi3aqwONTrAkOL2Basfdj29faPMz29sgofukHo15K987GIRClOuscJmzKX0S24EzM=
</HostId>
</Error>
But if i go to my file doc.html bucket1example.s3.amazonaws.com/doc.html i can see my file.
Is there a way to display the Doc.html file with the url "bucket1example.s3.amazonaws.com"?
Is possible when i visit bucket1example.s3.amazonaws.com automatically redirect to "doc.html"?
You have to enable static website hosting for the bucket and configure an index document
This AWS document can help you with the configuration.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/IndexDocumentSupport.html

AWS S3 Bucket - Access Denied on Sub-Pages

So I have an AWS S3 Bucket hosting the files for a react application I've built. I use CodePipeline to build and compile the React app and store the files on an S3 bucket which is served through a CloudFront CDN.
Everything seems to be working fine when I access the url from the root https://website.com. When I click "login" on that page I get directed to the following route https://website.com/auth/login and it works awesome.
The Problem
If I try to access the page https://website.com/auth/login directly I get the following error:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>66CE67E2E5DA0B7B</RequestId>
<HostId>Spfhgnlygx05eugycEy5ew4e8oSn/ccNX21Iy/6qaAxI8glXljDjgKmUPvMzRd8+NktQsNietpg=</HostId>
</Error>
I set the default resource in the cloudfront CDN to the /index.html which is why the root domain works, but how do I get all there urls to point to /index.html so the app routes it properly?
I needed to set a rule for 403 Forbidden in my cloudfront configuration as posted here: Receive AccessDenied when trying to access a reload or refresh or one in new tab in angular 5

AWS Cloudfront can't access S3 files deployed with CodeBuild

I'm working on getting a static website deployed with AWS Codebuild, hosted in an S3 bucket, and accessed via Cloudfront. Everything seems to work except from accessing from Cloudfront. From Cloudfront, I can access files that I manually upload, and using the bucket URL, I can access all the files. Looking through the individual file settings/permissions, they all look to be the same, regardless of whether they were manually uploaded, or deployed via Codebuild. I've tried invalidating the Cloudfront cache, and re-deployed via Codebuild several times.
Additional Information:
I provided the S3 bucket as an origin when setting up the Cloudfront distribution.
Accessing via Cloudfront gives the following error:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>0211CBE618946F</RequestId>
<HostId>
7sRZhaJS4x2W7Iaeo4y8KAjvsOJcNWh3PxCdgnhXPE22oyp1RxZhwpjrqbsWapsUSaqBK+jqE=
</HostId>
</Error>
What else should I check?
For some reason, adding a default root object fixed the issue.
FWIW, I initially changed the value to dist/index.html, which allowed me to access the deployed bucket contents via the Cloudfront URL, but required the index.html suffix. Once I changed it to index.html, everything worked fine.

AccessDenied error while connecting AWS S3 using Pentaho

enter image description here
Please see the screenshot-
I am new to Pentaho and AWS S3. I am trying to download a file from Amazon S3 using Pentaho but getting the following error:-
org.jets3t.service.S3ServiceException: S3 GET failed for '/' XML Error Message:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>XXXXX</RequestId>
<HostId>XXXXXXX</HostId>
</Error>
I can used the same key to connect the Amazon using Cyberduck, so key is working correct.
pentaho might scanning for all the buckets because of /, try providing access to all bucket or mention correct bucket in url. As s3 has case sensitive check for url format and naming conventions.

Get Request from AWS

I am really new with AWS. I got a task to get request from this link : https://s3.amazonaws.com , but it shows Access Denied. and Here is the result I got. Please help me to getObject data from the link
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>FF91410354571103</RequestId>
<HostId>
4KESrzSjgbNG+gURnW2d5PKiyDIUoesZoySaDKfSk6OVNtEi3j2KIrwVXrFXQ2HR
</HostId>
</Error>
I guess you want to enable access to the s3 objects for public.
You can either add bucket policy for public access through aws console, which will enable public access to all files in the bucket check this link or set permission for each file that needs to be publicly accessible through aws console. When you click on the file you will see properties tab on the right side where you can set read access for everyone in permission setting.