1. Create a certificate in ACM
Go to ACM - List certificates - Request a public certificate.
Check the region is us-east-1. A certificate that will use in CloudFront has to be in us-east-1, though my origin(S3 or EC2) exists in other region.
Enter domain name that I have.
Check DNS validation is selected. A DNS validation means creating a certain record to prove that I can modify DNS configuration.

This is the record I have to make in my DNS service, in my case, Route 53.

"Create records in Route 53" button will automatically add the record if I have the domain in the same account. But I had the domain in a different account. I had to do it manually.

In a record name field, copying whole text gave me duplicate domain names, "api.ourcompanylunch.com". I trimmed it.
Then wait and go to ACM - Certificates - Select the certificate. I can see Issued.

After checking it's issued, return to the region that EC2 is running.
Last updated