Installing certbot on Amazon Linux 2 AMI

The steps to install certbot on an Amazon Linux 2 EC2 instance are:

  1. Enable the EPEL Repository for yum using the following command line:

    sudo amazon-linux-extras install epel
    
  2. Install certbot using yum:

    sudo yum install certbot