emgarten / Sleet

A static nuget feed generator for Azure Storage, AWS S3, and more.
MIT License
362 stars 43 forks source link

Can we use sleet using a IAM role? #202

Open prsshini opened 1 month ago

prsshini commented 1 month ago

my build tool will use the sleet push command to puch the package to one bucket. FRom here, all the s3 buckets in other regions are replicated with the packages. (these destination buckets are already manually initialised as a sleet bucket).

While replicating, I need to re-index the new package. how do i re-index the bucket? there is no index command?

Another thought is to have the lambda push the package using sleet to the destination bucket when a source bucket received a new package. But to have the lambda use the sleet, can i use iam role in the sleet.json? i see only access keys and instance profile options

emgarten commented 1 month ago

While replicating, I need to re-index the new package. how do i re-index the bucket? there is no index command?

In this scenario nupkgs gets put into the sleet feed bucket directly and you want sleet to update the json files for the feed based on what is already in the bucket?

Another thought is to have the lambda push the package using sleet to the destination bucket when a source bucket received a new package.

Having a lamdba or another process push the package with sleet is your best option. You can use SleetLib to run push in process.

I'm not an expert on AWS auth.

Sleet uses the standard AWS libraries which support picking up environment variables and a credentials file on the machine, so any you can get it to work.

prsshini commented 1 month ago

will the sleetlib work with lambda? (Lambda runs in a linux environment) is there any documentation available on how to use sleetlib from linux env?

emgarten commented 1 month ago

sleetlib works on linux as cross platform dotnet

prsshini commented 2 weeks ago

Could you point me to any documentation that explains how to setup and use sleetlib in a linux env?