Skip to content

Using a single domain to serve multiple clients globally using CloudFront with anycast IP addresses.

0

I am planning to use a single domain to serve multiple clients globally using CloudFront with anycast IP addresses. Based on CloudFront Functions, requests will be routed to regional backends for processing. The question is: whether their clients need to whitelist all the 21 anycast IP addresses or just one at their firewall level.

AWS

asked 10 months ago150 views

1 Answer
0
Accepted Answer

Looking at the launch blog post:

You must add these IP addresses into any relevant allow lists.

So yes, add all 21 IP addresses.

Note that if you're using the apex record of your domain and you're using Route 53 then that number is reduced to three. Ref: https://aws.amazon.com/about-aws/whats-new/2025/04/amazon-cloudfront-anycast-static-ips-apex-domains/

As an aside: While using CloudFront Functions to route to regional endpoints works and is one way to do it; consider using regional/location-based DNS instead. Lower cost and less "moving parts".

EXPERT

answered 10 months ago

EXPERT

reviewed 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.