Menu
EFS-to-EFS Backup Solution
EFS-to-EFS Backup Solution

Architecture Overview

Deploying this solution with the default parameters builds the following environment in the AWS Cloud.


        EFS-to-EFS backup solution architecture

Figure 1: EFS-to-EFS backup solution architecture

The AWS CloudFormation template deploys two Amazon CloudWatch events, an AWS Lambda function, an Amazon DynamoDB table, an Amazon Simple Notification Service (Amazon SNS) topic, and an Amazon Simple Storage Service (Amazon S3) bucket. It also deploys an Auto Scaling group that launches and terminates an Amazon Elastic Compute Cloud (Amazon EC2) instance when a CloudWatch event occurs, and a backup Amazon Elastic File System (Amazon EFS) file system in your existing Amazon Virtual Private Cloud (Amazon VPC).

One Amazon CloudWatch event runs on an interval you define during initial configuration. This event invokes the solution’s orchestrator AWS Lambda function, which modifies the desired capacity of the Auto Scaling group to launch the Amazon EC2 instance, creates an ID for the backup, and stores details about the backup Amazon EFS file system in a DynamoDB table. The orchestrator function also creates a second CloudWatch event that stops the backup process if the backup process does not finish before a customer-defined amount of time (the backup window) has passed.

During boot, the EC2 instance mounts the source and backup Amazon EFS file systems and initiates the backup. When the backup process completes, the instance updates the backup activity details in the DynamoDB table, sends logs to the Amazon S3 bucket, and modifies the desired capacity of the Auto Scaling group to terminate the instance. If the instance cannot update the DynamoDB table, Amazon SNS sends a notification to subscribed email addresses.

If the backup window expires before the backup process completes, the second CloudWatch event invokes the orchestrator function to update the desired capacity of the Auto Scaling group to terminate the instance.

If the backup is unsuccessful, Amazon SNS sends a notification to subscribed email addresses. You can also choose to be notified if the backup is successful.