Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Option to use last existing snapshot #139

Merged
merged 2 commits into from
Oct 1, 2024
Merged

feat: Option to use last existing snapshot #139

merged 2 commits into from
Oct 1, 2024

Conversation

kichik
Copy link
Member

@kichik kichik commented Oct 1, 2024

Instead of creating a new snapshot, set useExistingSnapshot to true and use the latest available snapshot. This can speed up the process significantly, but may end up using older than desired snapshots. If you already have an automated snapshot, it might be good enough.

new RdsSanitizedSnapshotter(sfnStack, 'MySQL Cluster Snapshotter', {
  vpc,
  databaseCluster: mysqlDatabaseCluster,
  script: 'SELECT 1',
  snapshotPrefix: 'mysql-cluster-snapshot',
  useExistingSnapshot: true, // <====
});

Resolves #1

@mergify mergify bot merged commit e493780 into main Oct 1, 2024
14 checks passed
@mergify mergify bot deleted the last-snapshot branch October 1, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Existing snapshots
1 participant