Or just visit my website to see what I do. ![]() Download the modules using pip3 install -t package BeautifulSoup4įeel free to contact me on Twitter, DEV Community or LinkedIn if you have any questions or suggestions.Choose the Lambda function you have created.Choose the 'Lambda function' destination.Click on the 'create event notification' button.Choose ‘ListBucket’, ‘DeleteObject’, ‘GetObject’.Click on the role name in the execution role section.Click on the configuration tab and click the 'permissions' option.Add TWILIO_AUTH_TOKEN and specify your Twilio auth token.Add TWILIO_ACCOUNT_SID and specify your Twilio account ID.Add FROM_NUMBER and specify the 'from' number at Twilio.Click on the 'configuration' tab and then the 'environment variables' option.You will need to download the code and zip it all up some something like 'lambda_function.zip'. Next, click on the 'upload from' button in the code tab, choose zip, and then upload the provided code. If you only want to send an SMS, you are almost done - create a project from the IoT 1-Click page, and give it a name and description. ![]() Change the default execution role to: 'Create a new role with basic Lambda permissions'.Click the 'author from scratch' option.Get the delivery report from the Twilio Console or API. The object (+274012312344) is then deleted from the S3 bucket.The content is then sent to the Twilio API.The function will read the SMS named like this: +274012312344, then read the body.Trigger this Lambda function by an S3 bucket event for an object PUT event. ![]() This Lambda function is triggered by an S3 bucket event, and then sends the SMS to Twilio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |