You are currently viewing How to configure replication in AWS EFS?

How to configure replication in AWS EFS?

  • Post author:
  • Post category:AWS

How to configure replication in AWS EFS?

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

You can create a copy of your EFS file system to another region by setting up replication in your EFS file system.

What is replication in AWS EFS?

You can use Amazon EFS replication to create a replica of your Amazon EFS file system in the AWS Region of your preference. When you enable replication on an EFS file system, Amazon EFS automatically and transparently replicates the data and metadata on the source file system to a new destination EFS file system. To manage the process of creating the destination file system and keeping it synced with the source file system, Amazon EFS uses a replication configuration.

Amazon EFS automatically keeps the source and destination file systems synchronized. Amazon EFS replication is continual and designed to provide a recovery point objective (RPO) and a recovery time objective (RTO) of minutes.

Amazon EFS creates the destination file system with read-only permissions. After the destination file system is created, Amazon EFS performs the initial sync that copies all data and metadata on the source to the destination file system. The amount of time that the initial sync takes to finish depends on the size of the source file system. After the initial sync is finished, the replication process continually keeps the destination file system in sync with the source.

To failover to the destination file system in a replication configuration, you must delete the replication configuration. After the replication configuration is deleted, the destination file system becomes writeable, and you can start using it in your application workflow. This process can take several minutes to complete.

Note: Because a destination file system is read-only while it is a member of a replication configuration, Amazon EFS does not create any mount targets when it creates the destination file system, and any write operations to the destination file system will fail till its part of the replication configuration.

How to configure replication in AWS EFS?

Prerequisites:

AWS CLI installed and configured.

Step 1: Create a new EFS file share that will serve as the source of our EFS replication configuration.

Step 2: Create EFS replication configuration using AWS CLI

Note: For demo purposes, I have given the same region for the target EFS file system as the source EFS file system but you can give any supported region within the same AWS account. For EFS of type “one zone”, you need to provide the availability zone as well in the “destination” parameter.

Step 3: Get details on your EFS replication configuration using AWS CLI.

We have successfully configured replication in AWS EFS.

How to configure replication in AWS EFS?

Step 4: Clean up.

Hope you have enjoyed this article. To get more details in AWS EFS, please refer the below documentation

https://docs.aws.amazon.com/efs/index.html