pulumi/examples/scenarios/mongo_twilio
joeduffy dafeb77dff Rename Coconut to Lumi
This is part of pulumi/coconut#147.

After it has landed, I will rename the repo on GitHub.
2017-05-18 11:38:28 -07:00
..
app.js Restructure the examples 2017-02-09 16:07:45 -08:00
Lumi.yaml Rename Coconut to Lumi 2017-05-18 11:38:28 -07:00
README.md Restructure the examples 2017-02-09 16:07:45 -08:00

mongo_twilio

This sample sends an SMS via Twilio to any new customer entry added to a MongoDB database.

This is derived from Mulesoft's sample app here: https://github.com/mulesoft/twilio-connector/tree/master/example-send-sms-interact-with-mongo

Assuming we are deploying to AWS, running $ mu deploy app.js creates a new CloudFormation stack. That stack includes a single lambda that is triggered off modifications to the clients MongoDB database. This database is not provisioned by this stack; instead, we use name-based discovery to find an existing database configured in the environment.

In fact, many configuration entries are automatically plumbed around in this example, which are passed manually in the Mulesoft example. For instance, the Twilio account SID and "from" phone number, are configured per stack deployment.