4 votes

AWS API Gateway: 403 forbidden with disabled API key; error from cloudfront

Besides setting API Key Required = false, I was missing something in API Gateway > Custom domain names: The API Mapping had no stage selected. When I selected dev, the endpoint worked.
soniaseguz's user avatar
3 votes
Accepted

For storing avatars in s3, which approach has the lowest cost?

For the best performance naming many small files in an s3 bucket may not be the best idea unless they user_id is a random string. See how the S3 hashing algorithm works https://aws.amazon.com/blogs/...
petrchpetr's user avatar
3 votes

Amazon S3 bucket does not redirect folder URLs to index.html

CloudFront does not actually have this feature. You can redirect the root object https://www.example.com/ to https://www.example.com/index.html by setting DefaultRootObject, but there's nothing for ...
user2640621's user avatar
  • 1,395
3 votes
Accepted

AWS: Using CloudFront as CDN for non-AWS hosted content

CloudFront doesn't care where your origin server is hosted or even who you use for DNS. As long as the Origin Domain Name you provide is resolvable from the Internet (and has valid SSL configuration, ...
Michael - sqlbot's user avatar
3 votes
Accepted

AWS API Gateway: 403 forbidden with disabled API key; error from cloudfront

When you deploy an edge-optimized API, API Gateway sets up an Amazon CloudFront distribution and a DNS record to map the API domain name to the CloudFront distribution domain name. Requests for the ...
Harish KM's user avatar
  • 311
2 votes

Unexpected type error in ansible community.aws.cloudfront_distribution: "origins" parameter: "'list' object has no attribute 'get'"

It's a bug; origin_ssl_protocols is defined as a list here, then the code tries to treat it as a dict here (which is the line referenced in your stack trace.) As a workaround, it looks like the code ...
flowerysong's user avatar
1 vote
Accepted

404 status code in response from Cloudfront for a single page react application

you can catch an error like 404 and redirect it to 200 and your index.html with custom error pages in cloudfront like shown here https://www.youtube.com/watch?v=gBkysF8_-Es
danny kaplunski's user avatar
1 vote
Accepted

CloudFront -> ELB -> Pod running Gunicorn

Nginx will help you in performing the below items if you need some of them, Then I would say it make sense to add it to the stack Optimize the caching (you can also cache dynamic content. Restrict ...
Al-waleed Shihadeh's user avatar
1 vote
Accepted

How to setup Cloudfront for Load balancer for a private staging domain name?

My solution is based on signed cookies (find how to implement it here, https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-signed-cookies.html); I've created a lambda ...
punkbit's user avatar
  • 349
1 vote

Cloudfront for ELB, automatic redirection

I needed to whitelist Host, Origin and Referer in the Whitelist Headers section. I've had more issues with CloudFront, wrote a blog post about it, maybe someone will find it helpful: https://medium....
Justyna Zet's user avatar
1 vote

Cloudfront for ELB, automatic redirection

As the issue is happening only with /admin URL, this might be related with cookies which are being passed to the backend application's /admin URL. You may need to check with CraftCMS team (or some ...
Samit's user avatar
  • 1,001

Only top scored, non community-wiki answers of a minimum length are eligible