Giter Club home page Giter Club logo

aws-sftp-lambda-trigger's Introduction

This project is SFTP Server and based aws services like s3, lambda and transfer familty. SFTP server use the s3 as backend. User can login SFTP server with ssh-key. After file uploaded s3 trigger notification to the lambda function. The function reads 20 bytes of content and create new file in s3. The filename will be f20-$(first 20 bytes of content)

Topology

image

Prerequire

  • awscli and account
  • terraform-cli
  • docker

Deployment

make prepare
make deploy

Destroy

make destroy

Test

make build
make run 
SFTP_SERVER:xxxx.server.transfer.us-east-1.amazonaws.com
SFTP Username:ftp-user
Upload file:/opt/test-file.txt

sftp> put /opt/test-file.txt
Uploading /opt/test-file.txt to /test-clouddrove-sftp-bucket/incoming/test-file.txt
/opt/test-file.txt                                                                                                                                    100%   26     0.1KB/s   00:00    
Connected to xxx.server.transfer.us-east-1.amazonaws.com.
sftp> ls
f20-00000000000000000000  f20-11111111111111111111  
f20-22222222222222222222  f20-asd123asdsad

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.