Code Monkey home page Code Monkey logo

aws_examples's Introduction

Introduction

This repo lists sample codes to demonstrate usage of different services of AWS, Slack/Flock, google scripts for quick small projects to avoid large setups.

General approach

Collect data and trigger an AWS lambda function on receiving data. Process data and push it a Slack Channel and/or write to a google sheet.

There are various ways to trigger an AWS Lambda function, I have listed some below:

  1. API Gateway: Create HTTPS routes, public or protected. Lambda function can be triggered on each request received.
  2. SNS: If you have an already existing API or process, you can push a notifiication to SNS and trigger a Lambda function. Like sending email when the API is called.
  3. S3: A scenario where you have to carry out some task when a file/object is uploaded to S3.

Notes

AWS Lambda

Create a blank Lambda function and select a trigger. if you select API gateway, it will be created by default which you can modify to suit your needs

Same works for SNS. You can create a endpoint in SNS and add it to Lambda as trigger .

Slack / Flock

Webhooks can be easily created using their GUI.

Inbound webhook: Use it to post to Slack or Flock

Outbound webhook: Push data from slack to some external source.

Google script

Each Google sheet or google doc can have a script attached to it. Tools -> Script Editor.

In the script editor, there should either be a doPost or doGet method. Then you can Publish the script by selecting Publish -> Deploy as web App. While publishing in the section who can access the app, select : Anyone, even anonymous

aws_examples's People

Contributors

theashishranjan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.