Route53 - alias to cloudfront, distribution not listed

1

As I understand I should be able to use an alias to point the apex of my domain to a Cloudfront distribution. When I attempt this I get the following message and no list of distributions:

An alias to a CloudFront distribution and another record in the same hosted zone are global and available only in US East (N. Virginia).

The message isn't particularly clear. CloudFront distributions are global by default so I don't know what needs to change to allow this.

Route53-error

2개 답변
4
수락된 답변

Hi There

In addition to Abhishek's answer, please also Check CloudFront distribution names

Before routing to CloudFront distributions, be sure that the name of the resource record you create matches a CNAME in the CloudFront distribution.

For example, if the record name is example.com, your CloudFront distribution must use example.com as one of its alternate domain names.

See https://aws.amazon.com/premiumsupport/knowledge-center/route-53-no-targets/

profile pictureAWS
전문가
Matt-B
답변함 2년 전
  • Thanks, the confusion was that CloudFront system indicates not to specify apex for CNAME, but in the case of use with a Route53 alias it is correct.

2

Could you please make sure that you did the below

Alias

You must create an Alias record for the CloudFront distribution to work.

Value/Route traffic to

Choose Alias to CloudFront distributions. The us-east-1 Region is selected by default. Choose the domain name that CloudFront assigned to the distribution when you created it. This is the value that you got in step 1.

The detailed steps are outlined under https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-cloudfront-distribution.html

AWS
전문가
답변함 2년 전
  • Thanks, the confusion was that CloudFront system indicates not to specify apex for CNAME, but in the case of use with a Route53 alias it is correct.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠