Skip to content

This repository includes a collection of solutions and tools for the AWS Elastic Disaster Recovery (DRS) service. You can use one or all of them to customize and enhance your DRS deployments.

License

Notifications You must be signed in to change notification settings

djciaro/drs-tools

 
 

Repository files navigation

AWS Elastic Disaster Recovery (DRS) Tools

This repository includes a collection of solutions and tools for the AWS Elastic Disaster Recovery (DRS) service. You can use one or all of them to customize and enhance your DRS deployments.

This solution provides an automated, sequential approach for AWS DRS drills and recoveries. The solution enables you to plan multiple application recoveries, each with their own recovery order and wait times. The solution provides a protected, React based user interface to accelerate and simplify use.

The solution enables you to organize collections of servers by tags in ordered waves, so you can recover architectural components as groups. Each wave can also have a sequenced set of PreWave and PostWave automation actions. Automation actions are defined as SSM Automation runbooks providing broad flexibility for sequenced automation before and after a server recovery performed by DRS. This enables you to support and orchestrate managed services recovery and automation for AWS services such as RDS, Lambda, Route 53, S3, etc either before or after a grouped EC2 recovery completed by DRS. It also enables you to organize and automate steps you must perform for DR for each application.

The solution provides a React based UI requiring authenticated login with Amazon Cognito. The solution also provides an option to use AWS Web Application Firewall (WAF) to limit access to the IP addresses / CIDRs that you specify. The solution uses API Gateway and AWS Lambda to interface with Step Functions for orchestration and DynamoDB for data capture / retrieval.

The solution uses AWS Step Functions to orchestrate recovery for each application you specify based on your specified plan and sequenced set of Waves, each with their own PreWave / PostWave automation actions. AWS Lambda is used to drive recovery / automation execution logic.

The following state machine is implemented to coordinate the execution of PreWave Actions, DRS Jobs, and PostWave Actions for DR plan automation. The state machine is supported by an AWS Lambda function that implements the control logic for the plan automation. The state machine and lambda function are deployed via CodePipeline using the drs-automation-plan.yaml CloudFormation template.

This solution provides a flexible, configuration-based approach for synchronizing launch templates, launch configurations, and replication settings. It provides many options to override specific servers as well as provide default settings across your DRS servers and support multi-account DRS deployments.

When you are replicating EC2 instances, the tags from your EC2 instances are not applied to the source servers in the DRS service. Additionally, the EC2 instance type is not used for the DRS source server. This script enables you to replicate / synchronize the tags from your EC2 instances to DRS Source Servers. It also updates the launch template for each source server to correspond to the same EC2 instance type that it originates from.

When using DRS, every source server has a corresponding launch template. Launch templates cannot be edited in a batch using the native DRS tooling. This solution will enable you to use a single file as a baseline template that can be replicated, edited, and used for each source server tagged with a corresponding key in the DRS console.

When you deploy the DRS service, it is important to establish / update your logging and monitoring so you have observability on the health of your DRS deployment. This folder contains tools such as CloudWatch dashboards and CloudWatch logging configuration that you can use to establish observability for your DRS deployment.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the Apache 2.0 License. See the LICENSE file.

About

This repository includes a collection of solutions and tools for the AWS Elastic Disaster Recovery (DRS) service. You can use one or all of them to customize and enhance your DRS deployments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.1%
  • Python 45.2%
  • Go 2.4%
  • Other 1.3%