An Amazon Lambda function for creating MailChimp subscriptions with single opt-in. Based on Mailchimp Lambda and Node Lambda.
Set your API key and list ID in the .env file. Copy the sample to get started:
$ cp .env.sample .env
API_KEY=YOUR_API_KEY
LIST_ID=YOUR_LIST_ID
There's a handy script included to create your zip archive:
$ npm start
$ npm run build
$ npm run deploy
$ curl -X POST -H "Content-Type: application/json" \
-d '{ "email": "[email protected]", "first_name": "Anibal" }' \
YOUR_API_GATEWAY_URL