Sagemaker, EFS and EC2

0

Hi, I'm new with sagemaker and efs services. I have to create sagemaker instances with terraform and I'm wondering few things.

Each time I create a domain with some profiles, an EFS by default is also created. https://docs.aws.amazon.com/sagemaker/latest/dg/domain-custom-efs.html, it's the normal behaviour.

Even if I create my own EFS, how I can attach it in my sagemaker instance, then in my sagemaker studio terminal ? And is it possible to mount this EFS (or the default EFS) in an EC2 instance (in the same subnet network or not) ? It seems with those 2 pages : https://docs.aws.amazon.com/efs/latest/ug/installing-amazon-efs-utils.html https://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-helper-ec2-linux.html it's possible but after some tests, I still have timeout when I do the mount command.

What I have miss ?

Thank you for your help.

Ludovic
已提問 2 個月前檢視次數 333 次
2 個答案
0
已接受的答案

Studio Classic uses Elastic File System (EFS) for storage, see this documentation - https://docs.aws.amazon.com/sagemaker/latest/dg/notebooks.html. So, each Studio Domain you create automatically creates an EFS volume for storage - this is expected behavior.

The docs you linked, https://docs.aws.amazon.com/sagemaker/latest/dg/domain-custom-efs.html, talks about bringing a custom EFS volume to the new Studio. This could be any EFS volume you have, as long as the prerequisites mentioned in the doc are satisfied.

If you create your own EFS, you can use the documentation above to attach it to the new Studio apps. You simply provide the custom file system configurations for the domain, or users, and SageMaker will attach the file system for you. Studio Classic does not allow users to bring their own EFS volume.

Lastly, if you wanted to mount the Studio created EFS to EC2 instance, that is possible. Make sure the security groups allow traffic, and there are mount targets for the EFS volume in the appropriate subnets. This doc walks through the process in detail - https://docs.aws.amazon.com/efs/latest/ug/wt1-getting-started.html

AWS
Durga_S
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
0

thank you for your reply, I will test with new studio.

Ludovic
已回答 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南