- Newest
- Most votes
- Most comments
The error you're encountering suggests that there might be an issue with the configuration of your CloudFront distribution or the permissions set on your S3 bucket. Here are a few potential causes and solutions to consider:
-
Origin Access Identity (OAI) or Origin Access Control (OAC): If you've set up CloudFront to use OAI or OAC to access your S3 bucket, make sure that the bucket policy is correctly configured to allow access from CloudFront. Without proper permissions, CloudFront won't be able to retrieve objects from S3.
-
S3 Bucket Policy: Check your S3 bucket policy to ensure it allows CloudFront to access the objects. You may need to update the bucket policy to grant the necessary permissions to your CloudFront distribution.
-
CloudFront Distribution Settings: Verify that the origin domain name in your CloudFront distribution is correctly set to your S3 bucket's endpoint. It should be in the format: bucket-name.s3.region.amazonaws.com.
-
Object Permissions: Ensure that the specific object (m3u8.dev-1728655465501.mp4) has the necessary permissions for CloudFront to access it.
-
Cache Behavior: Check your CloudFront distribution's cache behavior settings. Make sure that the path pattern includes the path to your video files (/video-cdn/*).
-
Origin Path: If your files are in a specific folder within the S3 bucket, make sure you've set the correct origin path in your CloudFront distribution settings.
-
CloudFront Cache: If you've recently updated permissions or configurations, it might take some time for changes to propagate. You can try invalidating the CloudFront cache for the specific path.
To troubleshoot, double-check these settings in your AWS Console for both S3 and CloudFront. If the issue persists, you may want to review CloudFront logs for more detailed error information.
Sources
S3OriginConfig - Amazon CloudFront
S3Origin - Amazon CloudFront
Community | Hosting my Static Website in an AWS S3 Bucket + CloudFront— Part 2
Tutorial: Hosting on-demand streaming video with Amazon S3, Amazon CloudFront, and Amazon Route 53 - Amazon Simple Storage Service
Relevant content
- Accepted Answerasked 2 years ago
- asked 2 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 4 months ago