capabilities.work

Snapshot and Rebuild a DB Instance

A 5-step recipe with Amazon RDS. We can help you get access.

Recipe · 5 steps

Snapshot and Rebuild a DB Instance

with Amazon RDS · IT Infrastructure Management

Snapshot a source instance and build a fresh instance mirroring its config.

  1. Create a manual snapshot of the source instance to act as the restore point for the rebuild.
  2. Describe the snapshot and inspect its status. While it is still creating the workflow loops back to poll again; once it is available it proceeds to read the source configuration.
  3. Describe the source instance to read the engine, instance class and allocated storage used to build the mirrored instance.
  4. Create the new DB instance mirroring the source engine, instance class and allocated storage with fresh master credentials.
  5. Describe the new instance and inspect its status. While it is still creating the workflow loops back to poll again; once it is available the flow ends.
What you'll need to have ready
  • sourceDbInstanceIdentifier: The identifier of the source DB instance to snapshot and mirror.
  • dbSnapshotIdentifier: The identifier for the restore-point snapshot of the source.
  • targetDbInstanceIdentifier: The unique identifier for the new mirrored DB instance.
  • masterUsername: The master username for the new DB instance.
  • masterUserPassword: The master password for the new DB instance.
For your developer

Arazzo workflow amazon-rds:snapshot-and-rebuild-instance, 5 operations: CreateDBSnapshot → DescribeDBSnapshots → DescribeDBInstances → CreateDBInstance → DescribeDBInstances. Specs on APIs.io.