Giter Site home page Giter Site logo

cygni-competence-aws2-lamwatermark's Introduction

Cygni AWS Kompetensutveckling 2017

Notes

The name of the watermark image is hardcoded in the add_watermark() function. You can add another image file into the project and change the code to reflect that, if you want.

Pre-setup

  1. Log in to AWS console, on the eu-central-1 region
  2. Setup IAM role 'lambda-with-s3' with AmazonS3FullAccess and CloudWatchLogsFullAccess (eller bara AWSLambdaFullAccess)
  3. Setup empty S3 bucket. Note the name.

Installation / Launch

  1. Create lambda function named "watermarker"
  2. IAM role: 'lambda-with-s3'
  3. Select event source S3 from list
  4. Tie trigger from S3 bucket created above for "ObjectCreated (All)" event type
  5. Set timeout 10 seconds, max memory 256 MB.
  6. Run npm install unless that's already up-to-date
  7. Run ./create-lambda-package.sh from project directory to create the deploy.zip file
  8. Upload zip file
  9. Enable event trigger

cygni-competence-aws2-lamwatermark's People

Contributors

robu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.