Concepts
This tool helps you import AWS Cognito users to the contact list in MailChimp.
It does not override your current contacts, a contact that already exists will just be skipped
In action
Usage
Before you start
In order to import users from cognito to your mailchimp account, you need 3 things:
- Cognito userPoolId of the user pool that contains the users you want to add to mailchimp.
- MailChimp API key: How to get one
- MailChimp list ID: Where to find it
If you run on your local machine, also make sure that your AWS profile credentials are set in ~/.aws/credentials
Installation
If you want to use within a project
npm install --add mailchimp-cognito-import
If you want to install globally and run from anywhere
npm install -g mailchimp-cognito-import
Run
Use with CLI (global install)
mailchimp-cognito-import <user-pool-id> <mailchimp-api-key> <mailchimp-list-id>
You can also show the help prompt by running without args.
mailchimp-cognito-import