Certificate automation: Let's Encrypt with Certbot on Amazon Linux 2, Enable EPEL error

0

Hi there, I am attempting to finish setting up an EC2 to enable a research tool to be deployed online. I have had troubles with the "Certificate automation: Let's Encrypt with Certbot on Amazon Linux 2" instructions, linked below: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/SSL-on-amazon-linux-2.html#letsencrypt:~:text=Linux%202%20AMI.-,Certificate%20automation%3A%20Let%27s%20Encrypt%20with%20Certbot%20on%20Amazon%20Linux%202,-Warning

I have installed Apache through the following commands:

sudo yum install -y httpd
cd /tmp
sudo wget -O epel.rpm –nv \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install -y ./epel.rpm
sudo yum install python2-certbot-apache.noarch

I enter the following commands into a .pem bash terminal in vscode:

sudo wget -r --no-parent -A 'epel-release-*.rpm' https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/
sudo rpm -Uvh dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-*.rpm
sudo yum-config-manager --enable epel*
sudo yum update -y
sudo yum repolist all

When confirming that the EPEL is enabled, my information in vscode differs from what the instructions state. Please view the images below:

Instructions:

Enter image description here

My information:

Enter image description here

Any guidance on where a mistake may have been made, or why i am not able to enable these services would be greatly appreciated!

Many Thanks,

1 Answer
1

I just ran those same commands (to install EPEL) and this is the output that I get (with an edit to make it fit onscreen):

[ec2-user ~]$ sudo yum repolist all
...
repo id                                     repo name                                     status
...
epel/x86_64                                 Extra Packages - x86_64                       enabled: 13,528+215
epel-debuginfo/x86_64                       Extra Packages - x86_64 - Debug               enabled:      2,909
epel-source/x86_64                          Extra Packages - x86_64 - Source              enabled:          0
epel-testing/x86_64                         Extra Packages - Testing - x86_64             enabled:     422+18
epel-testing-debuginfo/x86_64               Extra Packages - Testing - x86_64 - Debug     enabled:         39
epel-testing-source/x86_64                  Extra Packages - Testing - x86_64 - Source    enabled:          0
repolist: 46,948
[ec2-user ~]$

The AMI I'm running is amzn2-ami-kernel-5.10-hvm-2.0.20230119.1-x86_64-gp2 - which one are you using?

profile pictureAWS
EXPERT
answered a year ago
  • Hi Brettski-AWS, thanks for your help!

    The AMI I am running is also amzn2-ami-kernel-5.10-hvm-2.0.20230119.1-x86_64-gp2

  • My only suggestion here is: Try again?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions