Questions tagged [amazon-cloudfront]

Amazon CloudFront is a web service for content delivery. It integrates with other Amazon Web Services to give developers and businesses an easy way to distribute content to end users with low latency, high data transfer speeds, and no commitments.

Docs

3904 questions
1
vote
1 answer

AWS - cannot access S3 bucket via HTTPS endpoint due to location constraint

The following services are activated: a S3 bucket in ap-east-1 where my static web pages are saved, a domain name registered on Route 53, a SSL certificate requested via Certification Manager at us-east-1, a CloudFront distribution for enabling…
S.C.
  • 850
  • 10
  • 35
1
vote
1 answer

Remove service-worker.js (special case)

What I mean by special case is that I need to remove the old service worker when I was using create-react-app. I should have removed it when using cra before switching the whole website to use gatsby. With gatsby I know I can remove service worker…
Thien Ly
  • 198
  • 2
  • 12
1
vote
0 answers

CloudFront endpoint just change the url to load balancer end point

I am setting up Amazon CloudFront where the origin is a Load Balancer. I have able to set CloudFront but their one issue I am facing is that when I access CloudFront endpoint it just change the url to load balancer end point. I have even whitelist…
1
vote
2 answers

How to set up SSL with CloudFront for EC2 Instance (Wordpress)

I followed this guide to setup WordPress on EC2, but it doesn't cover how to enable HTTPS. I've used the 'WordPress Certified by Bitnami and Automattic' AMI. I know I can use CloudFront infront of EC2 for SSL, but I'm having trouble getting it…
1
vote
1 answer

Cloudfront distribution fails to load subdirectories in one stack but works in another

I'm using cloudformation (via serverless framework) to deploy static sites to S3 and set up a cloudfront distribution that is aliased from a route53 domain. I have this working for two domains, each are new domains that were created in route53. I am…
1
vote
1 answer

Sharing S3 Bucket between Accounts for CloudFront

I have two AWS accounts. Each account has an S3 bucket and CloudFront which exposes the contents of the S3 bucket. I would like to get rid of a CORS issue. For that I I need to serve all content using one CloudFront. How I can grant permissions to…
DioNNiS
  • 1,148
  • 1
  • 9
  • 25
1
vote
2 answers

Can I serve multiple domains with CloudFront?

Can I implement the following behavior with AWS CloudFront: https://{id}.example.com/ -> https://{id}.execute-api.us-east-1.amazonaws.com/prod/ I want to make a CloudFront distribution that would simplify the API Gateway domains. The {id} part is a…
Matthieu Napoli
  • 42,736
  • 37
  • 154
  • 239
1
vote
1 answer

Adding CloudFront for S3 but EC2 not working

I am trying to setup CloudFront with an Amazon S3 static website and Amazon EC2 nodejs server. I have followed the following steps: Setup S3 bucket example.com Create certificate in ACM issued at example.com and api.example.com Create CloudFront…
Noober
  • 1,136
  • 2
  • 15
  • 36
1
vote
1 answer

While using Travis, why do I get unable to locate credentials in after_deploy

So this is my .travis.yml: language: python python: - "3.5" cache: pip install: - pip install awscli script: - echo 'test' deploy: provider: s3 access_key_id: $AWS_ACCESS_ID secret_access_key: $AWS_SECRET_ID bucket: "xxxxx.com" …
1
vote
1 answer

static site works in my S3 instance but with cloudfront I'm getting an error 403 AccessDenied

I'm following this tutorial about how deploy a static site to s3 and cloudfront https://miketabor.com/host-static-website-using-aws-s3/ I've created my S3 bucket, set this as public and then upload my files, the site…
clagccs
  • 2,130
  • 2
  • 20
  • 32
1
vote
0 answers

Cloudfront default domain works, but getting "NoSuchWebsiteConfiguration" on alternate domain name

I'm able to load my website via the default https://example.cloudfront.net domain, which I'm assuming verifies my S3 bucket permissions are done right. But after adding my example.example.com domain to the distribution setting, and adding the CNAME…
Max
  • 1,248
  • 13
  • 26
1
vote
1 answer

Getting 405 error code when using Cloudfront to origin on ec2 instance

I created a cloudfront distribution that connected to 2 origins: 1. s3 static website I uploaded. 2. ec2 instance with nginx docker with the following configuration: location /api { proxy_pass http://my_app:8080; proxy_set_header…
Dvir Nave
  • 15
  • 3
1
vote
1 answer

CloudFront usage in Unity3d

Searching for use examples of CloudFront in Unity and can't find it. Can I use stream video from CloudFront in Unity3d?
GuardFromUA
  • 133
  • 1
  • 12
1
vote
1 answer

possibility to use S3 as CDN for internal Application load balancer ( ALB) applications

For public websites, we have an option cloudfront as CDN for static content when we use internet-facing application load balancers. Is there any similar option for internal websites using private ALB ? Web application is implemented in ExpressJs…
Santhosh Nagulanchi
  • 555
  • 2
  • 10
  • 20
1
vote
1 answer

Restrict direct API Gateway calls unless it's from CloudFront

We created a CloudFront in front of our APIs. Is it possible to restrict API calls other than coming from CloudFront? Current setup: Caller --> API Gateway Endpoint --> Lambda Caller --> CloudFront Endpoint --> API Gateway Endpoint --> Lambda We…
Steven
  • 468
  • 5
  • 18
1 2 3
99
100