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 Answers
0
Accepted Answer

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
answered a month ago
profile picture
EXPERT
reviewed a month ago
0

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

Ludovic
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions