An AWS Lambda function that runs on a CRON schedule to grab content from a Google Sheet and generate a new MailChimp campaign.
- You must create a
g-auth.json
file and add it to the src of this project next toserverless.yml
. Instructions on how to create this authentication file for Google Sheets can be found here. - Update
serverless.yml
with the appropriate environment variables.
environment:
googleSheetId: <your-google-sheet-id>
mailChimpKey: <your-mailchimp-api-key>
mailchimpListId: <your-mailchimp-unique-list-id>
- Run
npm install
from the command line. - Run
serverless deploy
from the command line.