question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Include user provided session in dvc.api

See original GitHub issue

Sagemaker uses session objects to interact with other AWS resources. This includes S3 buckets, which in case of Sagemaker’s Jupyter Instances use IAM roles to know which buckets it can or cannot access, and it doesn’t allow the creation of user profiles to pass to dvc.

Allowing user to directly provide a session (SM uses boto3.session.Session, instead of aiboto3.session.AiSession) would provide a direct way to use DVC from AWS’ Sagemaker.

I am promoting the use of the tool inside my team, so it would be really helpful if this could work in our main work environment which are sagemaker instances.

Thanks a lot!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ElisaSuarezcommented, May 11, 2022

Thank you so so much! I feel kinda dumb now. I made various tests for pushing from SM, pulling into local, and vice-versa and worked every time.

I only have one last comment on this: I have been mostly following the DVC Getting started tutorials and in this one says to git add .dcv/.config, and this file will be different for each user… When I made the changes and pushed from sagemaker, it also changed the .config file, so the profile was overwritten from the name I gave when configuring the aws cli with SSO back to default, which in turns force me to always have to run dvc modify remote myremote --profile myprofile when pulling in my local machine after a git pull made from other machine. Is there a recommended way to deal with this? Specially when more than one person may be working with the data and the source code? (each person modifying the profile’s name to reflect their own aws cli setup?

0reactions
pmrowlacommented, May 11, 2022

Closing this issue since the boto3 session problem is resolved by installing the correct remote dependencies with dvc[s3]

Read more comments on GitHub >

github_iconTop Results From Across the Web

remote add | Data Version Control - DVC
Description. This command creates a remote section in the DVC projectDVC project's config file and optionally assigns a default remote in the core...
Read more >
DVC Client Plug-in Example - Win32 apps | Microsoft Learn
C++ code sample that shows how to create a Remote Desktop Connection (RDC) client dynamic virtual channel (DVC) plug-in.
Read more >
VMware Horizon RDP Virtual Channel Bridge SDK 3.3
supports RDP and PCoIP or Blast protocols, to provide a user with the remote ... This version of the SDK includes a .cpp...
Read more >
MLflow and DVC for open-source reproducible Machine ...
DVC excels at data versioning, and MLflow is multiple tools combined into one, ... If you want to be able to add users,...
Read more >
Continuous Machine Learning on Huggingface Transformer ...
We assume that user is well verse in Transformers , DVC, ... Continuous Machine Learning on Huggingface Transformer with DVC including Weights &...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found