Skip to content

CreateDBSnapshot

Source: src/AWS/RDS/CreateDBSnapshot.ts

Runtime binding for the CreateDBSnapshot operation (IAM actions rds:CreateDBSnapshot + rds:AddTagsToResource).

Takes a manual snapshot of the bound DBInstance — e.g. a pre-migration backup function or a scheduled snapshot-rotation job. The instance identifier is injected from the binding. Provide the implementation with Effect.provide(AWS.RDS.CreateDBSnapshotHttp).

// init — bind the operation to the instance
const createDBSnapshot = yield* AWS.RDS.CreateDBSnapshot(instance);
// runtime
yield* createDBSnapshot({
DBSnapshotIdentifier: `pre-migration-${runId}`,
});