Enable the Extra Packages for Enterprise Linux (EPEL).
$ sudo yum-config-manager --enable epel
Download the latest release of Certbot from EFF onto your EC2 instance using the following command.
$ wget https://dl.eff.org/certbot-auto
Make the downloaded file executable.