1 Answer
- Newest
- Most votes
- Most comments
0
Hi M-SaaS,
This Explanation finds you well about Your Issue.
Create a CloudFront Distribution:
• Go to the CloudFront service.
• Click "Create distribution".
• Choose "Web".
• Under "Origin settings", provide details:
1.Origin Domain Name: Enter the website endpoint of your S3 bucket.
2. Origin Path: Leave blank (optional).
3. Restriction Policy: Choose "No restrictions".
• Under "Behaviors", create a behavior with these settings:
1. Behavior Name: Enter a descriptive name (e.g., "Default").
2. Path Pattern: Enter "/" (to cover all paths).
3. Origin Settings: Refer to the configuration above.
4. Viewer Protocol Policy: Choose "Redirect HTTP to HTTPS".
• Under "Distribution settings", configure SSL/TLS:
1. Certificate: Choose the ACM certificate you created.
2. Minimum Protocol Version: Select TLS 1.2 or higher.
3. Security policy: Choose "AWS-managed security policy".
• Click "Create distribution".
Note
=> Check and give properly Viewer Protocol Policy: Choose "Redirect HTTP to HTTPS".
=> Give the “Alternate domain name” to access your website.
Troubleshoot 403 errors in CloudFront: https://repost.aws/knowledge-center/cloudfront-troubleshoot-403-errors
answered 13 days ago
Relevant content
- asked 5 months ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
How are you expecting the request to flow? From browser to API gateway, to where?