Previously it would throw a Cannot find a valid baseurl for repo: epel error as no mirrorlist nor baseurl would be populated for Amazon; this fixes that with the assumption that Amazon Linux 2 uses Enterprise Linux 7 as per AWS docs:
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
Previously it would throw a
Cannot find a valid baseurl for repo: epel
error as no mirrorlist nor baseurl would be populated for Amazon; this fixes that with the assumption that Amazon Linux 2 uses Enterprise Linux 7 as per AWS docs: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/