Skip to content

MLFlow on SageMaker - Long-running on-premise experiment tracking

1

How do you manage token expiry? Is there any way to have long-running training with IAM IDC or do we need to move to long-lived credentials for this use case?

With a long-lived portal session (limit is 90days), will sagemaker-mlflow lib / the SDK automatically refresh the token when the permission-set-based role session expires?

1 Answer
1
Accepted Answer

Answer from the package maintainer:

The sagemaker-mlflow lib is called at every request. Its init method (also invoked on each request) resolves credentials from boto3 at every request. (Upon each mlfow request to the tracking server, it resolves auth, and resolves the auth registry, which ends up initiating an AuthBoto instance.)

As boto3 manages credentials refresh, when using IAM Identity Center, tracking lasts for as long as the user portal session doesn't expire.

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.