create clone of ec2 instance in two AZ

0

I have two ec2 instances in two different AZ in Mumbai region inside a private VPC and Subnet. I wanted to make clone of one ec2 to other.

means if I upload a single file in one ec2 instance it should automatically replicate to the other ec2 instance placed in other AZ.

is it possible to achieve???

Thanks in advance !!!!

質問済み 2年前404ビュー
2回答
1

The easiest solution is to use EFS. It will not create a copy but each instance will have access to the file from their AZ.

profile pictureAWS
エキスパート
kentrad
回答済み 2年前
0

The solution for this is to use EFS. You need to create a efs first, then go to your ec2 instance and using amazon efs utils mount it to the instance then do the same for the next instance and you will have the same efs running on both instances so the file sharing will work. Please keep in mind to check the security group configurations that will be needed when using same efs on different AZ's.

回答済み 2年前

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

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

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

関連するコンテンツ