Is it possible to make EFS publicly accessible?

0

I want to make a EFS publicly access to a client. Is there any way to make the File system public? I have attached it to a public subnet but it still gets a private IP. Is it even possible?

2 Answers
2

Hi! If you're looking to share EFS with a client, I would recommend against making it completely publicly accessible.

You can share EFS with other accounts via IAM: https://aws.amazon.com/premiumsupport/knowledge-center/access-efs-across-accounts/.

You will need to mount it with IAM: https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html.

If it must be publicly accessible via networking, I would suggest ensuring the IAM policies on EFS lock down access to only the client and no one else.

You could also look into EFS Access Points: https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html

Edited based on the poster's comment below. Amazon does not allow these to be assigned public IPs: https://docs.aws.amazon.com/efs/latest/ug/sg-information.html. "File system mount targets can't have public IP addresses associated with them"

To allow network connectivity from your client, you could do VPC Peering or use a Transit Gateway.

jsonc
answered 10 months ago
  • I have went through the docs. The problem is EFS file system needs a VPC and hence everytime a private IP is assigned to the share. I am not able to get a Public IP assigned to the File System. How do i make a EFS publicly accessible?

  • As per the answer above: You can't make EFS filesystems public. It's generally a really bad idea to make filesystems public - I would find another way to do whatever it is you're trying to do. Perhaps ask that as a question?

0

Maybe this is what you are looking for? Using AWS Transfer Family to access files in your Amazon EFS file system. You can access the files via SFTP instead of NFS.

profile picture
EXPERT
kentrad
answered 10 months 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