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 年前399 查看次数
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 年前

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

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

回答问题的准则