-
Notifications
You must be signed in to change notification settings - Fork 36
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
Unable to retrieve IAM credentials when launching sagemaker container #341
Comments
I have mapped the dependencies of the IAM retrieval to: paws.common/R/client.R Update: following on my investigations I have found that paws.common-v0.3.4...paws.common-v0.3.5 credential_providers had a consistent update in the last release. Maybe the issue locates there? it seems that I will have an interesting weekend :) |
Sorry about that! We'll look in the next few days. It sounds like there's a bug in the getting ECS container credentials. I don't think that the paws.common 0.3.5 update would have affected this, unless this worked before. The 0.3.5 update added a new way of getting credentials from a config file but I don't believe it should have affected this case. |
Yeah, having the same issue. Can't seem to get IAM role anymore |
Thanks. Are you also having the problem in containers running under SageMaker, or in some other context? |
Yeah, I am using Sagemaker processing. I have two containers, one with code written in R using paws and other is in Python using boto3. No issues with Python but looking for a workaround with R now |
Thank you. If either of you have time, could you tell me if:
|
Hi @davidkretch Getting the credentials when running this in an EC2 instance with the same IAM role attached works perfectly. I have tested with 0.3.4 and its not working but let me post the logs tomorrow when I am back in office. I have made a partial fix by following these steps:
But of course this is far from optimal and I would like to keep my container dependencies at minimum and also do not have to maintain any AWS CLI wrappers if I can use paws. BR |
Hello, thanks for the info. We've been working on this but so far been unsuccessful at reproducing it. What we've tried so far is us-east-1 and eu-central-1, with Docker images based on Ubuntu 16, R 4.0, with and without renv, all run through SageMaker Processing. When you have time, could you provide us with
Thank you! |
Hello, we're closing this for now. Please let us know if this is still an issue and we'll do our best! |
I am unfortunately having this issue on sagemaker inference, but only on the serverless inference. I am deploying a model using the standard vetiver functions for doing so (ref: https://juliasilge.com/blog/vetiver-sagemaker/), along with some slight changes to the config to be serverless. The vetiver deployment works perfectly with real-time inference but when I change to serverless, it fails because paws can't find any credentials. I wonder if there is anything special that should be done when building a docker for serverless inference, or if this is just a paws issue. |
Dear colleagues,
2 months ago we managed to finish our R MVP using sagemaker. We were able to run preprocessing, training and inference and also able to inject multiple parameters into the container using step functions.
We are having now the following issue in preprocessing:
When calling the following function:
We are not getting the following error:
This a very extrange issue because 3 things:
My renv regarding paws looks as follows:
Any clue of why this is happening?
BR
/Edgar
The text was updated successfully, but these errors were encountered: