There are no instruction on how to install the dns route53 plugin for certbot. Here is how to do it for Ubuntu. To install certbot:

$ sudo apt update
$ sudo apt install software-properties-common
$ sudo apt-add-repository ppa:certbot/certbot
$ sudo apt update
$ sudo apt install certbot

To install the dns-route53 plugin:

$ sudo apt install python3-pip
$ sudo pip3 install certbot-dns-route53

You can then create a new certificate with something like that:

$ sudo certbot certonly --dns-route53 -d YOUR-DOMAIN.com --deploy-hook 'systemctl reload apache2'