- Newest
- Most votes
- Most comments
Ok, here's how I was able to create a record in Route53 pointing to my distribution.
In Route53, went to my hosted zone, clicked "Create record", checked "Alias". Picked "Alias to a cloudfront distribution". Then I was able to pick my cloudfront distribution in the dropdown. That's a breakthrough! However, now i get 403 Bad request. To be continued...
Hello.
If you define ACM in CloudFormation as shown below, DNS validation should be performed automatically.
In the example below, a CNAME record for DNS verification is registered in the hosted zone on Route 53 called "test.com".
"HostedZoneId" can be confirmed from the Route53 screen.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html
AWSTemplateFormatVersion: "2010-09-09"
Resources:
Certificate:
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: test.com
DomainValidationOptions:
- DomainName: test.com
HostedZoneId: Z040XXXXXXXXXXXXXXXX
ValidationMethod: DNS
If you want to perform manual verification, you need to register a CNAME record for verification in Route53.
https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html
So following you guys' advice, I moved my resources to N. Virginia and I was able to create a certificate and use it in a cloudfront distribution with my domain name as a CNAME. However, my domain still isn't delivering content! What am I doing wrong?
Relevant content
- asked 3 years ago
- Accepted Answerasked 7 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
that's nice! Thanks for the tip. I managed to create my cert using cloudformation template, however all my resources are located in Paris region, and if I try to create a cloudfront distribution, adding a CNAME to it requires to provide a certificate, and my new cert does not appear in the dropdown. It says that certificate should be in N. Virginia region. How can I request a cert in N. Virginia when my default region is Paris and all my resources in cloudformation template are in Paris?
I think you only need to create the ACM and CloudFront parts in the "us-east-1" region in the CloudFormation template. In the case of CloudFormation, resources are created in the region where the template is deployed, so you need to change it to the desired region.