Mount EFS FileSystem to EC2 Linux/Unix Server cross account

0

Hi AWS, I am looking to mount the EFS FS from Account A to EC2 Linux/Unix instance in Account B. Both the filesystem and the server are in different VPCs. I was following this document https://repost.aws/knowledge-center/access-efs-across-accounts as per prerequisites The VPCs of your NFS client and your EFS file system are connected using either a VPC peering connection or a VPC Transit Gateway. This allows Amazon Elastic Compute Cloud (Amazon EC2) instances from the same or different accounts, to access EFS file systems in a different VPC.

We have TGWs in both the accounts but not sure if I have to create a TGW attachment like VPC Peering Connection.

Also I need to know the sequence of steps that needs to be followed in order to accomplish this. Also the instance and the filesystem are in the same AWS region across both accounts. The repost blog post might be missing the elaborative context so can you please help me with the overall process.

2 回答
0

Heres a useful link of how to setup TGW and attach the VPCs https://docs.aws.amazon.com/vpc/latest/tgw/tgw-getting-started.html

profile picture
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
0

If you just have two VPCs, it would be easier or more cost efficient to use vpc peering. To use TGW, you need to share the TGW with another account using AWS RAM. Here is a how-to article. Another option is to use a shared VPC without using either vpc peering or TGW. So basically your EC2 and EFS will be in a shared VPC across two accounts. Refer to the bottom of this guide.

profile pictureAWS
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前

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

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

回答问题的准则