Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use sleet using a IAM role? #202

Open
prsshini opened this issue Sep 30, 2024 · 3 comments
Open

Can we use sleet using a IAM role? #202

prsshini opened this issue Sep 30, 2024 · 3 comments

Comments

@prsshini
Copy link

prsshini commented Sep 30, 2024

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
Copy link
Owner

emgarten commented Oct 1, 2024

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
Copy link
Author

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
Copy link
Owner

sleetlib works on linux as cross platform dotnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants