0
votes

I own the domain name albunack.net and it is now under Route53 control (with NS & SOA record sets)

I have a server running on Elastic Beanstalk as albunack.elasticbeanstalk.com

In Route53 I have added a CNAME record direct.albunack.net -> albunack.elasticbeanstalk.com

On CloudFront I have created new Distribution with origin server of direct.albunack.net and alternate Cname: www.albunack.net and albunack.net

Then on route53 I have added another CNAME record www.albunack.net -> cloudfront name

But my question is how/what kind of record do I add to Route53 so that albunack.net (without the www part) also goes to the Cloudfront server ?

1

1 Answers

3
votes

You will want to create what's called an alias record to your CloudFront distribution.

  • In your hosted zone, select Create Record Set
  • Leave the name value empty
  • Leave type to A
  • Select Yes from Alias
  • Click in the alias target box, your CloudFront distribution should show up. If it doesn't, you can manually paste in your CloudFront distribution's DNS name here.
  • Click Save