-
Notifications
You must be signed in to change notification settings - Fork 89
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
Problem with environment variables in modelstep #82
Comments
Looking at the source for ModelStep, it seems that the supplied environment is currently ignored. Not sure what the effort / consequences to fix this would be, but perhaps a temporary workaround could be to implement your own ModelStep class with environment support or to update the environment directly in the State? For example, something in this direction (haven't tried it myself): |
Thans really much @t6nn, |
Thank you for reporting this bug! |
Hi,
Please help.
I am having some challenges with stepfunctions + sagemaker APIs.
It seems that I should be able to pass environmental variables to endpoint using env(dict[str,str]) in the sagemaker.Model constructor in the steps.Modelstep.
However I am not able to get those env variables visible in the endpoint.
I am able to get the env variables working with boto3 but I don't want to use that as I prefer Sagemaker API with step functions.
So how to pass env variables correctly to stepfunctions to that those are visible?
Running:
stepfunctions=1.0.0.9
sagemaker=1.55.4
However in container once I start it (printing os.environ all keys and values)
The text was updated successfully, but these errors were encountered: