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 !!!!

demandé il y a 2 ans404 vues
2 réponses
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
EXPERT
kentrad
répondu il y a 2 ans
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.

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions