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년 전402회 조회
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년 전

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

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

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

관련 콘텐츠