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 年前檢視次數 400 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南