RPM or YUM

Create a RPM Repo in AWS S3

# Create the repo first
awless create bucket rpmtestrepo

# Get an existing repository base
wget -r -np -nH -A "php73*rpm" $RPM_URL_SERVER

# Create a repo
createrepo --update /tmp2/

# upload to s3 the yum repo
aws s3 cp --recursive php73 s3://rpmtestrepo/ --acl public-read

# create the yum repo file: /etc/yum.repos.d/myrepo.repo
[reece]
baseurl = https://rpmtestrepo.s3.us-west-1.amazonaws.com
enabled = 1
gpgcheck = 0
name = Reece
repo_gpgcheck = 0

# refresh repos
yum clean all
yum repolist
yum check-update

# another way to add the repo
yum-config-manager  --add-repo
yum-config-manager --nogpgcheck --add-repo https://rpmtestrepo.s3.us-west-1.amazonaws.com
echo "gpgcheck=0" >> /etc/yum.repos.d/rpmtestrepo.s3.us-west-1.amazonaws.com.repo
cat /etc/yum.repos.d/rpmtestrepo.s3.us-west-1.amazonaws.com.repo