I'm searching for a way to synchronize EFS contents over two different EBS cluster. The plan is to mount both EFS into a EC2 instance during deployment to rsync the contents afterwards.
Our Setup:
- 2 ELB Cluster
- each in an own VPC with 3 availability zones
- one is our stage/maintenance cluster, where our customer uploads media data and creates CMS-pages etc. and one for production purpose
- each of the ELB's uses an EFS to store User generated content, such uploaded images etc.
The goal:
- synchronize EFS1 to EFS2 during deployments
- therefore both EFS should be mounted in one of the LIVE clusters EC2 instances
- this way the contents could be synchronized from one mountpoint to the other one using rsync
Current status:
- ELB and EFS working great for each of the two domains (stage / live) we peeres the VPCs successfully with DNS resolution in both directions
- I added the complete STAGE CIDR as a route to the VPC-Peering for LIVE
- I allowed the access to the STAGE EFS for the live webserver security group in the EFS security group for STAGE EFS.
- I can ping the EC2 instances of the STAGE EBS from a EC2 instance of the LIVE EBS via DNS-name
The problem is, that I can't mount the STAGE EFS inside of my LIVE EC2s. In contrast to the EC2 DNS names, the hostname cannot be resolved (mount.nfs4: Failed to resolve server eu-west-1b.fs-123456.efs.eu-west-1.amazonaws.com: Name or service not known)
Can someone tell me, what's wrong with my setup/strategy or at least point me to the right direction and tell me if it is solvable this way or not?
Thanks a lot!!!