All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

My Cloudfront distribution is showing access denied despite enabling all public access to the bucket objects

I am using the following CF policy in my S3 bucket: { "Version": "2008-10-17", "Id": "PolicyForCloudFrontPrivateContent", "...
Navdeep Singh's user avatar
0 votes
1 answer
85 views

S3 site in Cloudfront Preflight 302 Error

I have a static s3 website hosted through CloudFront. In it, I make a request that will result in a redirect if the user is not logged in. Preflight then fails because of a 302: Access to fetch at '...
Demian Licht's user avatar
0 votes
1 answer
75 views

Proper Setup for a simple AWS S3 website using CloudFront & Route, with base domain and www subdomain

Which is the better design, and why? (see 2 tables) 1. Here is the configuration of my working website (example.com is the prevent domain) as setup via a Youtube Tutorial... Route53 Cloudfront Dist ...
TheArchitecta's user avatar
0 votes
1 answer
213 views

S3 / Cloudfront / Load balancer Architecture explanation needed

My architecture is like so: I have a static website xyz.com hosted on s3 and served with cloudfront. The website is accessing an api that seats behind a load balancer. I want to make sure that only ...
April Henig's user avatar
0 votes
0 answers
276 views

How to serve both static and dynamic content via AWS cloudfront?

I have a site hosted on a digital ocean droplet which serves both static and dynamic content. The static content (e.g. /images, /js, /css, /fonts) is served from an s3 bucket with folders /images, /js,...
adam78's user avatar
  • 119
0 votes
1 answer
721 views

Getting 403 (Forbidden) when try to load an S3 file from AWS CloudFront behaviour

I have created an S3 bucket. All objects are publicly accessible. I can access the image file via S3 url: https://S3_BUCKET_NAME.s3.eu-west-1.amazonaws.com/xyz.jpg I can access the image file via ...
tom's user avatar
  • 1
1 vote
2 answers
2k views

CloudFront distribution can't access S3 bucket for website static assets

The problem I'm trying to deploy an S3 bucket hosting my static website asset and a cloudfront distribution to access it, but the distribution still return a bare xml file for an 'access denied' error:...
fudo's user avatar
  • 141
0 votes
1 answer
362 views

Can't access static site S3, Cloudfront, Route53

I apologize if this needs to be split into two questions, but I'm trying to set up a static site using S3, a CloudFront distribution, and a Route53 domain. If I try to access laszloffy.com, I receive ...
vypr907's user avatar
1 vote
1 answer
658 views

On AWS Cloudfront, I'd like to route /api/* requests to an external api

I'm fairly new to Cloudfront ( AWS in general ), and looking set up a behaviour such that any requests that is for example test.com/api/* goes to an existing api that we also own, except it's on a ...
Ben Perram's user avatar
0 votes
0 answers
158 views

CloudFront Access Logs Issue

I was tried querying our CloudFront logs using Athena for an error i'm getting but haven't received any results. The query i'm trying using is: SELECT * FROM cloudfront_logs WHERE request_id = > ...
samtech 2021's user avatar
2 votes
2 answers
2k views

What is the difference between S3 Multi-Region Access Points and AWS CloudFront?

Can anyone explain the difference between S3 Multi-Region Access Points and AWS CloudFront? The documentation for a multi-region access point states: Multi-Region Access Points offer a global S3 ...
HelloWorld's user avatar
1 vote
0 answers
1k views

CloudFront CORS request using signed cookies and withCredentials, not sending back Access-Control-Allow-Credentials unless I include some extra header

I'm having a very strange issue that I can't seem to crack. I configured a private CloudFront distribution to serve content from a private S3 bucket. I am using signed cookies to grant access to the ...
bryan60's user avatar
  • 61
0 votes
1 answer
60 views

Sending push notification to s3 origin website from lambda

I want to send a websockets notification from lambda function to clients, on a website hosted via s3 origin with cloudfront. Could someone help me with this, please? Thanks.
NaNa's user avatar
  • 3
0 votes
1 answer
364 views

aws cloudfront custom ssl pricing for subdomain and www

I have created two s3 origin website linked with cloudfront and used acm certificate. But I recently found out pricing are different between https://admin.example.com and https://www.example.com. www....
NaNa's user avatar
  • 3
0 votes
0 answers
688 views

CloudFront delivery is slow in particular location

In our scenario, I found that our CloudFront delivery particularly in the Japan area is very slow for a few days. which lead our site to become slow in the time of loading the media contents .our s3 ...
samtech 2021's user avatar
2 votes
2 answers
1k views

AWS S3 Static Website vs CloudFront OIA

It seems there are kind of two ways to host a static website on S3/CloudFront. Create S3 bucket with full public access and Static Website set to Enabled + CloudFront config Create S3 bucket with no ...
pbuzz007's user avatar
  • 133
0 votes
0 answers
64 views

AWS/S3/Cloudfront/GoDadday and subdomains

I am wondering and hoping this is possible. On AWS I have two s3 buckets to separate a client facing application and an administrative application mysite-app mysite-admin I have a cloudfront ...
pbuzz007's user avatar
  • 133
0 votes
1 answer
164 views

Cloudfront distribution with react app and wordpress app hosted on same domain - how to get browsers with react app cached to render wordpress app?

I have a domain that hosts a react website in an s3 bucket via cloudfront. There is also a wordpress site hosted on a subdomain of that domain, and in the cloudfront distribution for the web app, I ...
Katie's user avatar
  • 103
6 votes
1 answer
4k views

AWS: How to redirect many domains to a page on another domain?

My objective I have a number of domains (e.g. 10 or 20) and I would like to redirect any visitors to anywhere on those pages to one page on another domain (for example my stackoverflow.com profile ...
ssc's user avatar
  • 1,169
1 vote
1 answer
2k views

AWS Cloudfront CORS trouble with font files

I have a Javascript application that is delivered to the browser from a CloudFront endpoint. All static files of the application are hosted in an S3 bucket. That involves a whole bunch of javascript ...
UncleBob's user avatar
  • 247
1 vote
1 answer
1k views

Unable to access S3 static website using https

I have followed all the steps from https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-https-requests-s3/ but my website still cannot be accessed using https. My certificate was issued ...
imin's user avatar
  • 83
-1 votes
1 answer
125 views

Suggestions for AWS setup wanted

For my next project, I'm giving AWS and server-less a go, but I'm not sure how to reason about the different AWS services. So here's hoping that someone here has a good feel for it. The project ...
LostInAws's user avatar
0 votes
1 answer
457 views

Cloudfront SSL with Subdomain pointing to S3 bucket works, but still redirects to S3 URL

I've set up an S3 Bucket that I want to use as a CDN but with my own subdomain. For example, myfiles.mydomain.com. So, I set up a Cloudfront web distribution that points to the bucket named "...
jtalarico's user avatar
  • 247
2 votes
1 answer
1k views

Redirect apex domain to www with Route53 and CloudFront

I'm trying to setup redirect from the apex domain example.com to www.example.com with route53, cloudfront and s3. I've seen many tutorials online and discussions here on the topic, but nothing has ...
Kaigo's user avatar
  • 123
0 votes
1 answer
250 views

Cloudfront behaviors with S3, Wordpress backend, and Vue frontend

I'll try to explain my situation and issue as best as I can. Previously I had a wordpress site behind cloudfront. Set up behaviors and that all worked well. Recently I have moved to using my wordpress ...
Josh Rodarte's user avatar
1 vote
1 answer
608 views

Trying to revoke public access on CloudFront S3 bucket

All the AWS security tools are bugging me all day about having public S3 bucket access turned on. So I said sure, the only bucket we have that needs public access is our cloudfront bucket, let me fix ...
mxyzplk's user avatar
  • 113
0 votes
1 answer
168 views

CloudFront distribution from S3 bucket: big "bucket is public" warning. What can go wrong?

I'm moving an existing static website to S3/CloudFront. Following some documentation from AWS, I setup a policy on the S3 bucket to make it public: { "Version": "2012-10-17", "Statement": [ ...
aspyct's user avatar
  • 360
2 votes
0 answers
2k views

Access denied for S3 bucket with redirect access via CloudFront

I have public S3 bucket exposed via CloudFront to S3 A record for www.mezinamiridici.cz. https://www.mezinamiridici.cz/ - works http://www.mezinamiridici.cz/ - redirects to https://www.mezinamiridici....
Leos Literak's user avatar
1 vote
1 answer
240 views

Serving secure static S3 site without www

I'm trying to set up AWS to serve a static S3 site over SSL with a custom domain. I'm so close but I'm missing one piece. S3 static website (works): xyz.s3-website.us-east-2.amazonaws.com CloudFront ...
TrueWill's user avatar
  • 119
1 vote
1 answer
633 views

what should the ACL value be when limiting S3 object access to CloudFront only?

I followed https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html But I cannot figure out what should the ACL on AWS.S3.PutObjectRequest be ...
A.Blanc's user avatar
  • 113
1 vote
0 answers
344 views

domain masking for a cloudfront distribution

I have a domain test.com which is linked to a cloudfront distribution which then serves static content from s3 bucket. Now I want another domain www.test2.com to masked redirect to test.com. I created ...
Kamal Reddy's user avatar
2 votes
2 answers
864 views

Redirecting HTTPS -> HTTPS on AWS?

I have a static website w/ S3 + Route53 + Cloudfront set up. I am successfully able to do the following redirects: http://example.com -> https://example.com http://www.example.com -> https://example....
Andrew's user avatar
  • 121
0 votes
0 answers
16 views

Traffic handling capacity for 1 EC2 instance for t3.2xlarge [duplicate]

Protocol exchange between phone server and IOT device(inter regional). say there are 100000 users and each are requesting or using 12 - 20 times a day may be approximately at the same time(protocols ...
Pavan Kumar's user avatar
0 votes
1 answer
1k views

How to route to Cloudfront+s3 and rest to ALB in Route53?

The project has a domain name foobar.com pointing to a legacy system, hosting and serving mainly static files. The project got more complex over time and in AWS ALB certain /routes are pointed to ...
punkbit's user avatar
  • 221
0 votes
1 answer
1k views

Amazon CloudFront default SSL certificate for multiple domain names

A few years ago I setup an S3 bucket and enabled hosting. It's got an index.html file, which I use as a simple landing page. I then setup AWS CloudFront to use this S3 bucket as an origin server and ...
Kevin Swindon's user avatar
1 vote
1 answer
800 views

How to use AWS CloudFront for serving both Images and Website?

I have an e-commerce website, an ASP.NET website running on Windows/IIS. Currently I have all my product photos on the local server's File System but since the number of photos are growing I have ...
Hooman Bahreini's user avatar
2 votes
1 answer
2k views

CloudFront drops Access-Control-Expose-Headers header when Accept-Encoding is set

I am trying to get CloudFront to serve a gzipped text file along with Content-Length: <bytes> and Access-Control-Expose-Headers: Content-Length headers so I can display the download progress ...
brianskold's user avatar
2 votes
1 answer
2k views

AWS CloudFront - redirect root domain requests

First time poster on serverfault, apologies if this is in the wrong place. I have a website that I am trying to set up on AWS CloudFront. It is currently configured to serve static web content from S3,...
lek's user avatar
  • 23
0 votes
1 answer
222 views

Auto redirect Amazon CloudFront content from www to non-www

I'm really new to Amazon CloudFront. I have set up an S3 with Cloudfront, then I'm using a custom domain that I setup in CloudFlare. I can access my photo normally with this kind of link : https://...
Matz's user avatar
  • 1
1 vote
0 answers
3k views

How to have cloudfront distribution listen on custom port for HTTPS?

I have setup a Cloudfront distribution on AWS with custom domain name to fetch firmware update file from S3. However, the existing devices that we have with customers make an HTTPS request to that ...
sushrut619's user avatar
2 votes
1 answer
2k views

Cloudfront (w/ S3) Static Website Doesn't utilize index.html from sub directories

I have my website hosted on S3 with CloudFront as a CDN, and I need these two URLs to behave the same and to serve the index.html file within the directory: example.com/directory example.com/...
Costa Michailidis's user avatar
3 votes
1 answer
8k views

Redirect with CloudFront but changing URL

I have an S3 static website and I want to redirect all the requests to the index page. So if you go to mysite.com/this_doesnt_exist it should redirect to mysite.com. I was able to configure this ...
fsinisi90's user avatar
  • 165
1 vote
1 answer
2k views

Editable URL Rewrite Map for CloudFront/S3 Website using Lambda@Edge

I'm migrating a static website from IIS to Amazon S3, using CloudFront for https. The old site used the URL Rewrite module and had 301 redirect maps with over 200 entries. Here is an example: example....
Rocky's user avatar
  • 11
6 votes
1 answer
3k views

How to map subdomain in CloudFront to the same name in S3?

I have been searching for a way to do the following if someone can enlighten me would be greatly appreciated. e.g. would the following mappings be possible in a single CloudFront instance? feature-a....
Van Nguyen's user avatar
0 votes
1 answer
2k views

How do I limit S3 object access to CloudFront only?

TL;DR - How do I block requests for https://s3-eu-west-1.amazonaws.com/BUCKET-NAME/FILE.EXT while allowing requests coming via CloudFront? I followed the AWS documentation "Restricting Access to ...
Tom Brossman's user avatar
1 vote
0 answers
386 views

Amazon S3 - Cloudfront - Images just randomly get permission denied

we have a very strange issue with the images on our websites. From time to time, some images get a permission denied response when our website is requested. These images are in a S3 bucket with ...
Abenil's user avatar
  • 125
1 vote
1 answer
2k views

Serve a static website on S3 via CloudFront and ACM SSL without Route53

There is a great write-up of what I consider a "standard" setup of a single-page app hosted on AWS: S3 Static Sites. It includes Deployment to S3 SSL certificate via ACM Distribution via CloudFront ...
Kariem's user avatar
  • 561
1 vote
2 answers
64 views

Https configuration on AWS [closed]

I have an angular application hosted on aws s3, say example.com. The url is hosted on route53. You can access my website in non https here: http://proscorepad.com/ I created two repository that are ...
Jean-Baptiste's user avatar
1 vote
0 answers
588 views

The way AWS Lambda@Edge accesses to S3 restricted by Object Access Identity (OAI)

I have a question. Is the Lambda function (written in node.js) associated with CloudFront accessible to S3 objects restricted by Object Access Identity (OAI)? If yes, could you tell me how to access? (...
light's user avatar
  • 11
1 vote
1 answer
4k views

cannot get aws cloudfront / route53 to resolve my domain name

I have setup a cloudfront distribution with SSL, pointing to a s3 bucket which is public and setup as a static website. I chose the option to redirect HTTP to HTTPS, as I want to force HTTPS. I ...
patrick's user avatar
  • 153