GithubHelp home page GithubHelp logo

lksccjabar2023modul2_aplikasi's Introduction

lksccjabar2023modul2_aplikasi

This repository contains 2 scripts:

  • url-rewrite/: A CloudFront function to rewrite the request.
  • image-processing/: A lambda function to handle the image transformation request.

Instruction

  • Before creating a lambda deployment package, run npm run install-sharp to install sharp for the image processing lambda function.
  • The image processing lambda function requires the following environment variables:
    • originalImageBucketName: Original image bucket name
    • transformedImageBucketName: Transformed image bucket name
    • transformedImageCacheTTL: Transformed image cache-control
    • secretKey: Secret key used in the request to the lambda via x-origin-secret-header header
    • logTiming: Boolean, whether you want to log the time to process the request
  • Create an IAM policy called image-optimization-lambda-policy with the following permission:
    • Allow s3:PutObject action to transformed image bucket
    • Allow s3:GetObject action to original image bucket
  • The lambda function role should consist of only the following policies:
    • image-optimization-lambda-policy
    • AWSLambdaBasicExecutionRole (AWS-managed policies)

lksccjabar2023modul2_aplikasi's People

Contributors

kensasongko avatar

Watchers

 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.