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.

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠