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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则