'How to create Letsencrypt certificate with certbot for domain, registered on Route 53?

How to create Letsencrypt certificate with certbot for domain, registered on Route 53?

certbot certonly --standalone

leads to

Challenge failed for domain x.com
http-01 challenge for x.com
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: x.com
   Type:   connection
   Detail: 46.219.224.***: Fetching
   http://x.com/.well-known/acme-challenge/NlbP7bBb7FlgkO2JHO-o9pQVq4_DUe2wxMalk_VtpyA:
   Timeout during connect (likely firewall problem)

It is unable to add 46.219.224.*** as AAAA record to Route 53 because it is IPv4.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source