intuit / Trapheus

This tool automates restoration of RDS database instances from snapshots into any dev, staging or production environments. It supports individual RDS Snapshot as well as cluster snapshot restore operations.
https://intuit.github.io/Trapheus/
MIT License
101 stars 52 forks source link

support for cross account rds cluster database restore pipeline #213

Closed namitad closed 4 months ago

namitad commented 5 months ago

Description

Thanks for contributing this Pull Request. Make sure that you submit this Pull Request against the master branch of this repository, add a brief description, and tag the relevant issue(s) and PR(s) below.

PR to support sharing rds cluster snapshot and restore db cluster in other AWS accounts and regions. This PR contains the following:

  1. lambda to execute SSM automation (custom created) which executes restoration process for db cluster in given account and region from the shared snapshot
  2. lambda to verify completion of execution for each SSM automation and custom waiter addition for the same
  3. updates in template.yaml - cft for ssm automation document for db cluster restore, cfts for above 2 lambdas functions, updating state machine to include these steps in the pipeline.