Multiple CNAME pointing to one CloudFront distribution

0

I am hosting a CloudFront distribution pointing to a backend for my service (app.example.com). I have a multi-tenant system where I also provide other users the ability to point their sites to ours (service.anotherexample.com). I would like to add multiple CNAMES to the CloudFront distribution, but due to the fact that each CNAME needs to share one SSL certificate, we are unsure on how to proceed. We have the individual certificates for all of these sites, but there does't seem to be an option to assign multiple.

Here is an example of what we want to achieve with CloudFront:

service.anotherexample.com
                                 --->        app.example.com 
test.athirdexample.com             

where we have the SSL certificates for anotherexample.com and athirdexample.com, but not one certificate to cover three unique domains.

Any help would be appreciated. Thanks in advance!

1 回答
2
已接受的回答

You can serve multiple domains from an Amazon CloudFront distribution over HTTPS: https://repost.aws/knowledge-center/multiple-domains-https-cloudfront#

profile picture
专家
已回答 5 个月前
profile picture
专家
已审核 5 个月前
profile picture
专家
Steve_M
已审核 5 个月前
  • This requires an SSL certificate to cover every domain. Do we need to request a certificate applicable to every hostname that we intend to use?

  • This can be done using one certificate with multiple Subject Alternative Names (SAN).

  • Understood, thank you for your assistance.

  • There appears to be a 10 domain limit on the multiple SAN certificates that AWS provides. In the scenario that we need to deal with up to 50 domains, is there a feature for CloudFront similar to the Elastic Load Balancer where we can attach multiple certificates?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则