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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ