Include user provided session in dvc.api
See original GitHub issueSagemaker 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:
- Created a year ago
- Comments:15 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 todefault
, which in turns force me to always have to rundvc modify remote myremote --profile myprofile
when pulling in my local machine after agit 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?Closing this issue since the boto3 session problem is resolved by installing the correct remote dependencies with
dvc[s3]