Disclaimer: The following is more notes than instructions. I'll try and tidy this up at some point.
- Modify the rpmrepo.yml file to change all instances of AcmeCorp to your company name and the IP address to your company's external IP Address then create the Stack using CloudFormation.
aws cloudformation update-stack --stack-name rpmrepo --template-body file://rpmrepo.yml
2 Now, to build the repo and upload packages use something similar to the following:
yum install -y createrepo
mkdir ~/rpmrepo
- Copy your RPM files in to the new directory. Then continue with generating the metadata and uploading the files.
cp *.rpm ~/rpmrepo
createrepo ~/rpmrepo
aws s3 sync ~/rpmrepo s3://rpmrepo-acmecorp-{{randomid}}