Topic: https://webscale.plumbing/managing-apt-repos-in-s3-using-lambda
hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 228d ago

a couple of years old but very handy info. thanks.

typo; /etc/s3auth.conf should be /etc/apt/s3auth.conf

possibly helpful; deb s3://my-bucket-name/ dists/webscale.plumbing/2.0/ deb s3://<bucket name="">.s3.amazonaws.com/ dists/webscale.plumbing/2.0/</bucket>

latter worked for me. so many options.

hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 228d ago

oops. posting process seemed to mess with lt and gt. oh well.

hide preview

What's next? verify your email address for reply notifications!

Ar7394uj 3y, 338d ago

Nice solution!!!! Simply want to add that if you are using distributions in your repo, you can't use this S3 triggred arcitecture, because you have to tell to the Lambda which distribution you are uploading (bionic, xenial...) and S3 doesn't know it.

hide preview

What's next? verify your email address for reply notifications!

unverified 3y, 326d ago

Hi there! Nice work and pretty much worked for me apart from the time when adding multiple files at the same time. Can anyone explain how to fix that? I didn't quite understand that part of the writing. I'm getting bellow error:

'control.tar.gz': KeyError Traceback (most recent call last): File "/var/task/s3apt.py", line 233, in lambda_handler get_cached_control_data(deb_obj) File "/var/task/s3apt.py", line 130, in get_cached_control_data control_data = read_control_data(deb_obj) File "/var/task/s3apt.py", line 103, in read_control_data ctrl = get_control_data(tmp) File "/var/task/s3apt.py", line 42, in get_control_data control_fh = ar.getmember('control.tar.gz') File "/var/task/debian/arfile.py", line 104, in getmember return self.__members_dict[name] KeyError: 'control.tar.gz'

Any pointers from anyone?

-S

hide preview

What's next? verify your email address for reply notifications!