Skip to content

tahaHichri/AWS-cognito-mailchimp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mailchimp-cognito-import

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

mailchimp-cognito-import CLI

Usage

Before you start

In order to import users from cognito to your mailchimp account, you need 3 things:

  1. Cognito userPoolId of the user pool that contains the users you want to add to mailchimp.
  2. MailChimp API key: How to get one
  3. 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