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

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

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

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

관련 콘텐츠