Giter Site home page Giter Site logo

s3-image-processing's Introduction

s3-image-processing

Terraform to deploy solution for S3 image processing.

Any .jpg files uploaded to bucket A will be processed by the image processor lambda. The lambda will remove any exif meta data and move the file to bucket B.

Architecture

architecture diagram

Usage

Before running the terraform we need to create a key for encrypting IAM access keys. You will need to install gpg if you don't have it already.

Generate a key by running: gpg --gen-key

Output contents of public key to file: gpg --output public-key-binary.gpg --export <your-email/identity-used-during-key-gen>

Ensure public-key-binary.gpg is in the root directory of the terraform directory. If you move it somewhere else then you will need to update the variable pgp_key_path in env/dev.tfvars.

Initialize: terraform init

To run plan: terraform plan -var-file="env/dev.tfvars"

To deploy: terraform apply -var-file="env/dev.tfvars"

To destroy: terraform destroy -var-file="env/dev.tfvars"

To check output value of access keys (example of user_a key): terraform output -raw user_a_secret_key | base64 --decode | gpg --decrypt

s3-image-processing's People

Contributors

alan-craig-rft avatar craia94 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.