A Data Migration driver for querying and modifying Amazon Cognito user pools. Version 1.6.0 is the current stable release, maintained as part of the data-migration monorepo with Lerna. It integrates with the data-migration framework and supports cloudformation parameter resolution via dm-processor-cf. Compared to direct AWS SDK usage, it provides a migration-oriented abstraction with addUser, getUser, and deleteUser methods within a staging and migration directory structure.
npm install dm-driver-cognitoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures a Cognito driver using a CloudFormation stack output for the user pool ID, then creates a user in an up migration and deletes it in down.
Set AWS credentials via environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or configure an AWS profile.
Use const cognitoDriver = require('dm-driver-cognito') in your config file.Add @aws-sdk/client-cognito-identity-provider as a dependency if not already present.
Either provide a plain user pool ID string or use a processor object as shown in the configuration example.
Run 'npm install dm-driver-cognito' and ensure node_modules contains the package.
Use driver: require('dm-driver-cognito'), not new (require('dm-driver-cognito'))().