bdenning / aws-rpm-repo

CloudFormation template used to host RPM packages on Amazon S3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickstart

Disclaimer: The following is more notes than instructions. I'll try and tidy this up at some point.

  1. 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
  1. 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}}

About

CloudFormation template used to host RPM packages on Amazon S3