Home

Awesome

MailChimp Lambda

A Lambda function for creating MailChimp subscriptions.

Authentication

Set your MailChimp data center, API key, list ID, and username in the .env file. Copy the sample to get started:

$ cp .env.sample .env

Additional details about authenticating with the MailChimp API is available here.

Deployment

There's a handy script included to create your zip archive:

$ npm run zip

Integrate with the AWS API Gateway to access the function via HTTP POST:

$ curl -X POST -H "Content-Type: application/json" \
-d '{ "email": "name@email.com" }' \
YOUR_API_GATEWAY_URL